Head-mounted display device and computer program

ABSTRACT

A head-mounted display device includes an image display section, an imaging section, an image setting section configured to set an image, an operation input section, an object specification section configured to derive a spatial relationship of a specific object included in an imaged outside scene with respect to the imaging section, and a parameter setting section. The image setting section causes the image display section to display a setting image based at least on the derived spatial relationship and a predetermined parameter group so as to allow a user to visually perceive the setting image, and the parameter setting section adjusts at least one parameter in the parameter group so as to allow the user to visually perceive a condition that at least a position and pose of the setting image and those of the specific object are substantially aligned with each other.

BACKGROUND

1. Technical Field

The present invention relates to a technique of a head-mounted displaydevice.

2. Related Art

Hitherto, there has been known a head-mounted display device (HMD) whichis worn on a user's head. For example, JP-A-2005-38321 discloses a videosee-through type HMD in which an imaging section capable of imaging anoutside scene through a supporting section slides up and down withrespect to the HMD.

SUMMARY

When an image display apparatus including an optical see-through typehead-mounted display device includes a technique of displaying an imageat a position of a specific object so as to be superposed thereon with ahigh level of accuracy, it is possible to provide improved conveniencewith respect to an AR (augmented reality) function. However, when thedisplay image is to be correctly superposed on the specific object, itis preferable that a spatial relationship between its camera and imagedisplay section is correctly obtained.

An advantage of some aspects of the invention is to solve at least apart of the problems described above, and the invention can beimplemented as the following forms or application examples.

(1) According to an aspect of the invention, a head-mounted displaydevice is provided. The head-mounted display device includes an imagedisplay section configured to transmit light from an outside scene andto display an image; an imaging section configured to capture theoutside scene; an image setting section configured to cause the imagedisplay section to display an image; an operation input sectionconfigured to accept an operation; an object specification sectionconfigured to derive a spatial relationship of a specific object withrespect to the imaging section in the case where the specific object isincluded in the outside scene captured by the imaging section; and aparameter setting section. The image setting section causes the imagedisplay section to display a setting image based at least on the derivedspatial relationship and a predetermined parameter group so as to allowa user to visually perceive a condition that a position and pose of thesetting image and those of the specific object correspond to each other.After the setting image is displayed by the image display section, theparameter setting section adjusts at least one parameter in theparameter group based at least on a predetermined operation accepted bythe operation input section so as to allow the user to visually perceivea condition that at least a position and pose of the setting image andthose of the specific object are substantially aligned with each other,in the case where the operation input section receives the predeterminedoperation. According to the head-mounted display device of this aspect,the operation input section receives a predetermined operation, and thusa user can manually correct a spatial relationship between the specificobject and the setting image. Thereby, the user can easily performcalibration and execute calibration with a higher level of accuracy.

(2) In the head-mounted display device of the aspect, the parametergroup may include a set of transformation parameters that represents aspatial relationship between the imaging section and the image displaysection, and the parameter setting section may adjust at least one ofthe set of transformation parameters in response to the predeterminedoperation so as to allow the user to visually perceive a condition thatthe position of the setting image and that of the specific object aresubstantially aligned with each other in at least one of an up-downdirection and a left-right direction.

(3) In the head-mounted display device of the aspect, the set oftransformation parameters may include parameters that represent threerotations around orthogonal three imaginary axes in a coordinate systemof the image display section, and the parameter setting section mayadjust a parameter that represents a rotation around one of the threeaxes, the one axis being closest to being parallel with an imaginaryline representing a direction that eyes of the user are arranged whenthe head-mounted display device is mounted by the user, thereby changinga position of the setting image in the up-down direction.

(4) In the head-mounted display device of the aspect, the set oftransformation parameters may include parameters that represent threerotations around orthogonal three imaginary axes in a coordinate systemof the image display section, and the parameter setting section mayadjust a parameter that represents a rotation around one of the threeaxes, the one axis being closest to being perpendicular to both of firstand second imaginary lines, the first imaginary line representing adirection that eyes of the user are arranged and the second imaginaryline representing a direction that the user's forehead is facing whenthe head-mounted display device is mounted by the user, thereby changinga position of the setting image in the left-right direction.

(5) In the head-mounted display device of the aspect, the image displaysection may include a left image display unit and a right image displayunit. The parameter group may include a first set and a second set ofprojection parameters, each of the first set and second set ofprojection parameters representing projection from 3D (three-dimensionalcoordinate system) to 2D (two-dimensional coordinate system), the firstset of projection parameters being used by the left image display unitto display a 3D object as a first image, and the second set ofprojection parameters being used by the right image display unit todisplay the 3D object as a second image. The parameter setting sectionmay adjust at least one of the first set and the second set ofprojection parameters, based at least on the predetermined operation, soas to allow the user to visually perceive a condition that depthperception of the setting image and that of the specific object aresubstantially aligned with each other.

(6) In the head-mounted display device of the aspect, the first set ofprojection parameters and the second set of projection parameters mayinclude respective parameters that represent a left display principalposition of the left image display unit and a right display principalposition of the right image display unit, and the parameter settingsection may adjust at least one of the respective parameters, therebychanging the depth perception of the setting image.

(7) In the head-mounted display device of the aspect, the parametergroup may include a set of camera parameters of the imaging section, anda set of projection parameters that represents projection from 3D(three-dimensional coordinate system) to 2D (two-dimensional coordinatesystem), the set of projection parameters being for causing the imagedisplay section to display a predetermined 3D object as an image, andthe parameter setting section may adjust at least one of the cameraparameters and the projection parameters, based at least on thepredetermined operation, so as to allow the user to visually perceive acondition that a size of the setting image and that of the specificobject are substantially aligned with each other.

(8) In the head-mounted display device of the aspect, the set of cameraparameters may include parameters that represent a focal length of theimaging section, and the set of projection parameters may includeparameters that represent a focal length of the image display section,and the parameter setting section may adjust at least one of theparameters representing the focal length of the imaging section and theparameters representing the focal length of the image display section,thereby changing the size of the setting image.

The invention can be implemented in various modes other than thehead-mounted display device. For example, the invention can beimplemented in modes such as an image display, a system including theimage display, a computer program for implementing a method ofcontrolling the image display and the system, a recording medium havingthe computer program recorded thereon, a data signal including thecomputer program and which is embodied within a carrier wave, or thelike.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention will be described with reference to the accompanyingdrawings, wherein like numbers reference like elements.

FIG. 1 is a diagram illustrating an exterior configuration of ahead-mounted display device (HMD) that performs calibration.

FIG. 2 is a diagram illustrating an exterior configuration of thehead-mounted display device (HMD) that performs calibration.

FIG. 3 is a diagram illustrating an exterior configuration of thehead-mounted display device (HMD) that performs calibration.

FIG. 4 is a functional block diagram illustrating a configuration of anHMD.

FIG. 5 is a diagram illustrating two-dimensional real markers printed onpaper.

FIG. 6 is a diagram illustrating a two-dimensional real marker printedon paper.

FIG. 7 is a diagram illustrating a two-dimensional real marker printedon paper.

FIG. 8 is a diagram illustrating two-dimensional real markers printed onpaper.

FIG. 9 is a flow chart of a calibration execution process according tothe present embodiment.

FIG. 10 is a flow chart of a first setting mode.

FIG. 11 is a diagram illustrating a marker image displayed on an opticalimage display section.

FIG. 12 is a schematic diagram illustrating a spatial positionalrelationship in a state where a marker image is displayed on only aright optical image display section.

FIG. 13 is a diagram illustrating an example of a field of view of auser who visually perceives a setting image displayed in associationwith a specific object.

FIG. 14 illustrates a flow of an automatic collection process ofcalibration data according to an embodiment.

FIG. 15 illustrates a flow of an automatic collection process ofcalibration data according to another embodiment.

FIG. 16 illustrates a flow of an automatic collection process ofcalibration data according to another embodiment.

FIG. 17 is a diagram illustrating an example of a field of view which isvisually perceived by a user in the case of transitioning to a secondsetting mode.

FIG. 18 is a diagram illustrating an example of a field of view which isvisually perceived by a user when the display position of a settingimage is changed in the second setting mode.

FIG. 19 is a front view illustrating a rear face of a control sectionaccording to a second embodiment.

FIG. 20 is a schematic diagram illustrating an example of a real markeraccording to a third embodiment.

FIG. 21 is a schematic diagram illustrating an example of a real markeraccording to the third embodiment.

FIG. 22 illustrates tables showing elements related to parameters thatare set in a first setting mode.

DESCRIPTION OF EXEMPLARY EMBODIMENTS

In this specification, a description will be given in order according tothe following items.

A. First embodiment:

A-1. Configuration of Head-mounted display device:

A-2. Calibration Execution Process:

A-2-1. First Setting Mode:

A-2-2. Setting of Parameters:

A-2-2-1. With Regard to Camera Parameter:

A-2-2-2. With Regard to Transformation parameter:

A-2-2-3. Parameter Derivation Process:

A-2-2-4. Automatic Collection of Calibration Data:

A-2-3. Second Setting Mode:

B. Second embodiment:

C. Third embodiment:

D. Modification Examples:

A. First Embodiment A-1. Configuration of Head-Mounted Display Device

FIGS. 1 to 3 are diagrams illustrating an exterior configuration of ahead-mounted display device 100 (HMD 100) that performs calibration. TheHMD 100 can make a user visually perceive a display image displayed onan image display section 20 and can make the user visually perceive anoutside scene by light from the outside scene passing through the imagedisplay section 20 (FIG. 1). Although a detailed configuration thereofwill be described later, the HMD 100 according to the present embodimentincludes image display sections corresponding to the right and left eyesof a user wearing the image display section 20 to thereby allow theuser's right and left eyes to visually perceive separate images.

As illustrated in FIG. 2, the HMD 100 includes a mounting band 90mounted on the head of a user US, the image display section 20 connectedto the mounting band 90, a control section 10 (controller 10)controlling the image display section 20, and a connection portion 40connecting the control section 10 and the mounting band 90 to eachother. As illustrated in FIG. 1, the mounting band 90 includes amounting base portion 91 made of a resin, a belt portion 92 made ofcloth and connected to the mounting base portion 91, and a camera 60.The mounting base portion 91 has a shape curved in accordance with theshape of a human's sinciput. The belt portion 92 is a belt to be mountedto the vicinity of a user's head. Meanwhile, the connection portion 40connects the mounting band 90 and the control section 10 side to eachother in a wired manner, but the connected portion therebetween is notshown in FIG. 2.

The camera 60 is capable of capturing an outside scene and is disposedat the central portion of the mounting base portion 91. In other words,the camera 60 is disposed at a position corresponding to the center of auser's forehead with the mounting band 90 mounted on the user's head.For this reason, the camera 60 captures an outside scene which isscenery on the outside in a direction of a user's eye gaze direction ina state where the user wears the mounting band 90 on his or her head,and acquires the captured image. As illustrated in FIG. 2, the camera 60is movable with respect to the mounting base portion 91 in apredetermined range along an arc RC. In other words, the camera 60 canchange an imaging range in a predetermined range.

As illustrated in FIG. 2, the image display section 20 is connected tothe mounting base portion 91 through a coupling portion 93 and has ashape of a pair of spectacles. The coupling portions 93 are respectivelydisposed on both sides of the mounting base portion 91 and the imagedisplay section 20 so as to be symmetrical to each other, and theposition of the image display section 20 with respect to the mountingbase portion 91 is movably supported along the arc RA centering on thecoupling portion 93. In FIG. 2, a position P11 indicated by a two-dotchain line is the lowermost position of the image display section 20along the arc RA. In addition, a position P12 indicated by a solid linein FIG. 2 is the uppermost position of the image display section 20along the arc RA.

In addition, as illustrated in FIGS. 1 and 3, optical image displaysections 26 and 28 including a display panel capable of displaying animage move in parallel with holding sections 21 and 23 along a straightline TA in a predetermined range to thereby change their positions. InFIG. 3, a position P13 indicated by a two-dot chain line is thelowermost position of the optical image display sections 26 and 28 alongthe straight line TA. In FIG. 3, a position P11 indicated by a solidline is the uppermost position of the optical image display sections 26and 28 along the straight line TA. Meanwhile, the position P11 in FIG. 2and the position P11 in FIG. 3 indicate the same position.

As illustrated in FIG. 1, the image display section 20 includes theright holding section 21, a right display driving section 22, the leftholding section 23, a left display driving section 24, the right opticalimage display section 26, and the left optical image display section 28.The right optical image display section 26 and the left optical imagedisplay section 28 are disposed so as to be positioned in front of auser's right and left eyes, respectively, when the user wears the imagedisplay section 20. An end of the right optical image display section 26and an end of the left optical image display section 28 are connected toeach other at a position corresponding to a user's glabella when theuser wears the image display section 20.

The right holding section 21 is a member which is provided so as toextend to the coupling portion 93 connected to the mounting base portion91 from the other end of the right optical image display section 26.Similarly, the left holding section 23 is a member which is provided soas to extend to the coupling portion 93 from the other end of the leftoptical image display section 28. The right display driving section 22and the left display driving section 24 are disposed on sidescorresponding to a user's head when the user wears the image displaysection 20.

The display driving sections 22 and 24 include liquid crystal displays241 and 242 (hereinafter, also referred to as “LCDs 241 and 242”) to bedescribed later in FIG. 2, projection optical systems 251 and 252, andthe like. Configurations of the display driving sections 22 and 24 willbe described in detail later. The optical image display sections 26 and28 include light guiding plates 261 and 262 (see FIG. 4) and a lightcontrol plate which will be described later. The light guiding plates261 and 262 are formed of a light transmissive resin material or thelike, and guide image light which is output from the display drivingsections 22 and 24 to a user's eyes. The light control plate is anoptical element having a thin plate shape, and is disposed so as tocover the front side of the image display section 20 which is oppositeto a side of a user's eyes. The light transmittance of the light controlplate is adjusted, and thus it is possible to adjust the easiness ofvisual recognition of an imaginary image by adjusting the amount ofexternal light entering a user's eyes.

The control section 10 is an apparatus for controlling the HMD 100. Thecontrol section 10 includes an operation input section 135 including anelectrostatic track pad, a plurality of buttons capable of beingpressed, or the like.

FIG. 4 is a functional block diagram illustrating a configuration of theHMD 100. As illustrated in FIG. 4, the control section 10 includes a ROM121, a RAM 122, a power supply 130, an operation input section 135, amarker image storage section 138, a CPU 140, an interface 180, atransmission section 51 (Tx51), and a transmission section 52 (Tx52).

The power supply 130 supplies power to each section of the HMD 100. TheROM 121 stores various computer programs. The CPU 140 to be describedlater expands various types of computer programs stored in the ROM 121to the RAM 122 to thereby execute the various types of computerprograms.

The marker image storage section 138 stores data of a model marker (alsoreferred to as a marker model) which is used for calibration and/or amarker image IMG as an image for calibration which is displayed on theright optical image display section 26 or the left optical image displaysection 28. The marker image storage section 138 may store a markerimage displayed on the right optical image display section 26 and amarker image displayed on the left optical image display section 28 asthe same marker image IMG. Examples of the marker image IMG to be usedinclude an image of a two-dimensional model marker, data of theabove-mentioned model marker (2D) expressed in a three-dimensional modelspace (3D computer graphic space), or the model marker which isprojected on the basis of a projection parameter of each of the rightoptical image display section 26 or the left optical image displaysection 28. In other words, the marker image IMG is an image obtained bytwo-dimensionally expressing the shape of a two-dimensional orthree-dimensional real marker MK1 which is present as an actual object.Meanwhile, the real marker MK1 corresponds to an identification markerin the SUMMARY.

FIGS. 5 to 8 are diagrams illustrating two-dimensional real markersprinted on paper PP. FIG. 5 illustrates real markers MK1 and MK2 as twomarkers that are used for calibration according to the presentembodiment. As illustrated in FIG. 5, the real marker MK1 is a markerincluding ten circles in a square formed by connecting four vertexes P0,P1, P2, and P3 by a straight line. The centers of five circles among theten circles are present on a diagonal line CL1 connecting the vertex P0and the vertex P2. The five circles are circles C1, C2, C3, C4, and C5from a circle close to the vertex P0 along the diagonal line CL1.Similarly, the centers of five circles among the ten circles are presenton a diagonal line CL2 connecting the vertex P1 and the vertex P3. Thefive circles are circles C6, C7, C3, C8, and C9 from a circle close tothe vertex P1 along the diagonal line CL2. The circle C3 is on anintersection between the diagonal line CL1 and the diagonal line CL2 andis a circle centering on a point which is the centroid of the square. Acircle C10, which is one circle among the ten circles, is on a linewhich passes through the centroid of the square is parallel to astraight line connecting P1 and P2. The circle C10 is on another linewhich passes through the circles C5 and C9 and is parallel to theX-axis. In other words, the circle C10 is a circle having a centerbetween the center of the circle C5 and the center of the circle C9.

In the present embodiment, distances between the centers of circlesadjacent to each other in five circles having the center on the diagonalline CL1 are set to be the same as each other. Similarly, distancesbetween the centers of circles adjacent to each other in five circleshaving the center on the diagonal line CL2 are set to be the same aseach other. In addition, a distance between the centers of circles,having the center on the diagonal line CL1, which are adjacent to eachother and a distance between the centers of circles, having the centeron the diagonal line CL2, which are adjacent to each other are the samedistance. Meanwhile, only the circle C10 among the ten circles differsfrom the other circles in a distance between the center thereof and thecenter of each of the other circles. The sizes of the ten circles arethe same as each other in the present embodiment, however, the size ofthe circle 10 may be different from those of the other circles.Meanwhile, the diagonal line CL1, the diagonal line CL2, the X-axis, andthe Y-axis are illustrated in FIG. 5 for convenience of description ofthe real marker MK1, and are straight lines that are not included in areal marker MK1. As described later, upon detecting the actual objectmarker RL in the image frames captured by the camera 61, a markerspecifying section 166 performs scanning along the diagonals, andperforms profile determination on, for example, the binarized white andblack colors in the image frames. In the present embodiment, the markerspecifying section 166 determines a difference between the profile ofthe gradation value along the diagonals of a candidate of the markerarea and the profile of the gradation values along the diagonals CL1 andCL2 stored in the marker image storage 138, so as to detect the actualobject marker ML in the image frames. According to the presentembodiment, by using the real marker MK1 having the circles describedabove, a decrease in time required to detect the real marker MK1 in theimage frames is realized.

In FIG. 5, a difference in color is shown by changing hatching.Specifically, a hatched portion in FIG. 5 is black in color, and theother portions are white in color. For this reason, as illustrated inFIG. 5, the real marker MK1 is formed of a black square, which issurrounded with a white color, on white paper PP, and white ten circlesare formed in the square. Moreover, according to the present embodiment,the reproducibility when the centers of circles are detected may bedouble the reproducibility when corners or points of angles aredetected. For this reason, by using the actual object marker RL havingthe circles described above, the locations of feature elements aredetected accurately as centers of circles in the image frames.

The real marker MK2 illustrated in FIG. 5 is a marker which is createdon the basis of the real marker MK1. The real marker MK2 is a markerobtained by reducing the size of the real marker MK1 and reversing ablack color and a white color. For this reason, as illustrated in FIG.5, the real marker MK2 is formed by a white square surrounded by a blackcolor (as shown with a black line), and black ten circles are formed inthe square. In the present embodiment, the marker image storage section138 stores a marker image IMO which is a two-dimensional image of thereal marker MK1. Meanwhile, as illustrated in FIG. 6, a real marker MK2may be separated from a real marker MK1. In addition, as illustrated inFIG. 7, a real marker MK1A that does not include a circle, which is notpresent on a diagonal line, may be adopted instead of a real marker MK2(MK1). Meanwhile, as illustrated in FIG. 8, the rear faces of realmarkers MK1, MK2, and MK1A are not required to have features of a shape,a pattern, or a color.

The CPU 140 illustrated in FIG. 4 expands computer programs stored inthe ROM 121 to the RAM 122 to thereby function as an operating system150 (OS 150), a display control section 190, a sound processing section170, an image processing section 160, a display setting section 165, amarker specification section 166, and a parameter setting section 167.

The display control section 190 generates a control signal forcontrolling the right display driving section 22 and the left displaydriving section 24. The display control section 190 controls thegeneration and emission of image light by each of the right displaydriving section 22 and the left display driving section 24. The displaycontrol section 190 transmits each of control signals for a right LCDcontrol section 211 and a left LCD control section 212 throughtransmission sections 51 and 52. In addition, the display controlsection 190 transmits each of control signals for a right backlightcontrol section 201 and a left backlight control section 202.

The image processing section 160 acquires an image signal included incontents, and transmits the acquired image signal to reception sections53 and 54 of the image display section 20 through the transmissionsections 51 and 52. The sound processing section 170 acquires a soundsignal included in contents, amplifies the acquired sound signal, andprovides the amplified signal to a speaker (not shown) within a rightearphone 32 and a speaker (not shown) within a left earphone 34 whichare connected to a coupling member 46.

The display setting section 165 displays a marker image IMG based on thedata stored in the marker image storage section 138 on the right opticalimage display section 26 or the left optical image display section 28.When calibration is executed (during the execution of calibration), thedisplay setting section 165 controls the case where the marker image IMGis displayed on the right optical image display section 26 and the casewhere the marker image IMG is displayed on the left optical imagedisplay section 28 on the basis of an operation received by theoperation input section 135. The display setting section 165 displaysmarker images IMG, which having different sizes when the camera 60captures the real marker MK1 and executes calibration and when thecamera 60 captures the real marker MK2 and executes calibration, on theright optical image display section 26 or the left optical image displaysection 28. In addition, the display setting section 165 displays acharacter image to be described later, or the like on the optical imagedisplay sections 26 and 28 during the execution of calibration.

In the case where a captured image obtained by the camera 60 includespaper PP on which the real markers MK1 and MK2 are printed, the markerspecification section 166 specifies the real markers MK1 and MK2 fromthe imaged paper PP. Although a specific process for specifying the realmarkers MK1 and MK2 will be described later, the marker specificationsection 166 extracts coordinate values of four vertexes and ten circlesof the real markers MK1 and MK2 to thereby specify the real markers MK1and MK2 from the captured image. For example, the marker specificationsection 166 distinguishes between black and white portions in the realmarkers MK1 and MK2 by binarizing a gradation value of the color of thecaptured image to thereby extract coordinates of the centers of thecircles.

The parameter setting section 167 sets parameter groups required to setthe position of an augmented reality (AR) image, which is displayed onthe optical image display sections 26 and 28 in a state of beingassociated with a specific object imaged by the camera 60 (hereinafter,also referred to as a “specific object”), and the like within a displayregion. Specifically, the parameter setting section 167 sets parametergroups for making a user US visually perceive the AR image in a statewhere at least one of the position, size, and orientation of the ARimage displayed on the optical image display sections 26 and 28 isassociated with at least one of the position, size, and orientation ofthe specific object. In other words, the parameter setting section 167calculates at least one of the parameter groups for associating athree-dimensional coordinate system (3D) having the origin fixed to thecamera 60 with a display region (2D) of the optical image displaysections 26 and 28, by calibration. Meanwhile, hereinafter, athree-dimensional coordinate system having the origin fixed to thecamera 60 is referred to as a camera coordinate system or a camera frameof reference. In the present embodiment, as a coordinate system otherthan the camera coordinate system, a real marker coordinate systemhaving the origin of the real marker MK1 or the real marker MK2 as areference, an object coordinate system having a specific object imagedby the camera 60 as a reference, a display section coordinate systemhaving the origin of the right optical image display section 26 or theorigin of the left optical image display section 28 as a reference, andthe like are defined.

Here, the parameter group includes a “detection system parameter set”and a “display system parameter set”. The “detection system parameterset” includes a camera parameter CP regarding the camera 60. The“display system parameter set” includes a “transformation parameter”from 3D to 3D which indicates a spatial relationship between the camera60 and the optical image display sections 26 and 28 and a “projectionparameter” from 3D to 2D for displaying any 3D model (CG model expressedby three-dimensional coordinates) as an image (that is, 2D). Theseparameters are expressed in a mode of a matrix or a vector as necessary.The notation of “one parameter” may indicate one matrix or one vector,or may indicate one of a plurality of elements included in one matrix orone vector. The parameter setting section 167 derives necessaryparameters in a parameter group and uses the derived parameters duringthe display of an AR image. As a result, the HMD 100 can make a user USvisually perceive the AR image through the image display section 20 in astate where at least one of the position, size, orientation, and depthperception of the AR image (AR model) is substantially aligned withthose of a specific object. In addition to these, the HMD 100 may makeappearances such as color or texture aligned with each other.

When calibration is executed, the display setting section 165 displaysan AR image or a setting image SIM (to be described later) on the rightoptical image display section 26 or the left optical image displaysection 28. A detailed process using the setting image SIM will bedescribed later.

The interface 180 is an interface for connecting various externaldevices OA serving as content supply sources to the control section 10.Examples of the external device OA include a storage device storing anAR scenario, a personal computer (PC), a mobile phone terminal, a gameterminal, and the like. Examples of the interface 180 may include a USBinterface, a micro USB interface, an interface for a memory card, aninterface for a wireless LAN or PAN (personal area network), and thelike. The storage device may contain a medium that stores a program thatis to be loaded into the HMD 100 and causes the CPU 140 to realizefunctions described in the embodiments.

As illustrated in FIG. 4, the image display section 20 includes theright display driving section 22, the left display driving section 24,the right light guiding plate 261 as the right optical image displaysection 26, and the left light guiding plate 262 as the left opticalimage display section 28.

The right display driving section 22 includes the reception section 53(Rx53), the right backlight control section 201 (right EL controlsection 201) and a right backlight 221 (right EL 221) which function asa light source, the right LCD control section 211 and the right LCD 241which function as a display element, and the right projection opticalsystem 251. The right backlight control section 201 and the rightbacklight 221 function as a light source. The right LCD control section211 and the right LCD 241 function as a display element.

The reception section 53 functions as a receiver for serial transmissionbetween the control section 10 and the image display section 20. Theright backlight control section 201 drives the right backlight 221 onthe basis of a control signal which is input. The right backlight 221 isa light-emitting body such as an LED or an electroluminescence (EL). Theright LCD control section 211 drives the right LCD 241 on the basis of acontrol signal which is transmitted from the image processing section160 and the display control section 190. The right LCD 241 is a lighttransmissive liquid crystal panel in which a plurality of pixels arearranged in a matrix.

The right projection optical system 251 is constituted by a collimatelens that collimates image light emitted from the right LCD 241 into aparallel luminous flux. The right light guiding plate 261 as the rightoptical image display section 26 guides image light emitted from theright projection optical system 251 to a user's right eye RE whilereflecting the image light along a predetermined light path. Meanwhile,the left display driving section 24 has the same configuration as theright display driving section 22 and corresponds to the user's left eyeLE, and thus a description thereof will be omitted here.

A-2. Calibration Execution Process

FIG. 9 is a flow chart of a calibration execution process according tothe present embodiment. The calibration execution process according tothe present embodiment includes two modes, that is, a first setting modeand a second setting mode. In the first setting mode, the HMD 100 causesa user US to perform calibration for each eye. In the second settingmode, the HMD 100 causes the user US to perform adjustment on his or herboth eyes.

In the calibration execution process, when the operation input section135 first receives a predetermined operation, the parameter settingsection 167 determines whether or not calibration to be executed fromnow is set as first calibration (step S11). The marker image storagesection 138 stores data regarding whether or not calibration to beexecuted is first calibration. In the present embodiment, it may bedetermined for each user US whether or not calibration is firstcalibration. Specifically, the camera 60 may image the shape and patternof a palm of a user US, and the CPU 140 may specify the user US and maydetermine whether or not calibration is first executed by the user US.The specification of the user US may be performed by an ID card and theHMD 100 using near field communication. In the case where it isdetermined that calibration is set as first calibration (step S11: YES),the parameter setting section 167 proceeds to the first setting mode(step S20) Although the first setting mode will be described later indetail, the parameter setting section 167 displays a marker image IMGseparately on the right optical image display section 26 or the leftoptical image display section 28 in the first setting mode. Thereafter,the parameter setting section 167 sets a transformation parameter and acamera parameter CP using images of real markers MK1 or MK2 which areimaged by the camera 60 in a state where the marker image IMG and thereal markers MK1 and MK2 are visually perceived by the user US so as tobe aligned with each other.

As the process of step S20, when the parameter setting section 167 hasexecuted calibration in the first setting mode, the display settingsection 165 displays a setting image SIM associated with a specificobject on the optical image display sections 26 and 28 using the settransformation parameter and camera parameter CP (step S15). In thepresent embodiment, the specific object is the real markers MK1 or MK2,but is not limited thereto. When the setting image SIM is displayed onthe optical image display sections 26 and 28, the parameter settingsection 167 determines whether or not the values of the transformationparameter and the camera parameter CP have been successfully adjusted inresponse to the operation received by the operation input section 135(step S17). Specifically, the user US determines whether or not thevisual recognition of the user US is performed so that the setting imageSIM is associated with the position and orientation (pose) of thespecific object, and the user US may operate the operation input section135 according to the determination. In the case where the parametersetting section 167 receives an input indicating that the settransformation parameter and camera parameter CP are sufficient (stepS17: YES) the parameter setting section terminates the calibrationexecution process.

In the process of step S17, in the case where the parameter settingsection 167 receives an input indicating that the set transformationparameter and camera parameter CP are not sufficient by a predeterminedoperation being received by the operation input section 135 or receivesan input indicating that it is necessary to further adjust size anddepth perception (step S17: NO), the parameter setting sectionrepeatedly performs the process of step S11 and the subsequentprocesses. In the process of step S11, the parameter setting section 167determines that calibration to be executed from now is not set as firstcalibration (step S11: NO), the parameter setting section determineswhether to proceed to the second setting mode by a predeterminedoperation being received by the operation input section 135 (step S13).In the case where the parameter setting section 167 determines not toproceed to the second setting mode (step S13: NO) based on aninstruction from the user US, the parameter setting section proceeds tothe above-described first setting mode (step S20).

In the process of step S13, in the case where the parameter settingsection 167 determines to proceed to the second setting mode (step S13:YES), the parameter setting section proceeds to the second setting mode(step S30). The second setting mode will be described later in detail.However, in the second setting mode, the display setting section 165transforms the position and pose of the specific object with respect tothe camera 60, which are obtained by capturing the specific object bythe camera 60, into the positions and orientations (poses) of thespecific object with respect to the right and left optical image displaysections 26 and 28 using the parameter groups which are set in the firstsetting mode or the second setting mode which has been executed already.The display setting section 165 displays the setting image SIM on theright optical image display section 26 and the left optical imagedisplay section 28 with the positions and poses obtained by thetransformation. Thereafter, the parameter setting section 167 furtheradjusts some of the parameter groups so as to change the setting imageSIM associated with the specific object in response to the predeterminedoperation being received by the operation input section 135. When theparameter setting section 167 executes calibration in the second settingmode, the display setting section 165 executes the process of step S15,and the subsequent processes are repeated.

A-2-1. First Setting Mode:

A process in a first setting mode is as follows. The HMD 100 causes auser US to perform two alignments each of which is performed at a timewith respect to one eye, using two real markers MK1 and MK2 havingdifferent sizes, to thereby cause the user to perform a total of fouralignments. Specifically, first, the HMD 100 displays a marker image IMGon the right optical image display section 26 or the left optical imagedisplay section 28. The marker image IMG is obtained by projection, thatis, rendering a model marker having an imaginary position and pose (3D)to display regions (2D) of the optical image display sections 26 and 28with respect to each of the right optical image display section 26 andthe left optical image display section 28. The imaginary position andpose are fixed with respect to the optical image display sections 26 and28 in the present embodiment, but may be variable. The user US moves toa position and orientation (pose) at which the marker image IMGdisplayed on the right optical image display section 26 or the leftoptical image display section 28 and the real marker MK1 or the realmarker MK2 can be visually perceived so as to be superimposed on oraligned with each other. In the case where the marker IMG and the realmarker MK1 or MK2 are visually perceived by the user US so as to besuperimposed on or aligned with each other, the real marker MK1 MK2 ispositioned at a predetermined distance according to the sizes of thereal markers MK1 and MK2 and take the above-mentioned imaginary pose,with respect to the right optical image display section 26 or the leftoptical image display section 28. In a state where the marker image IMGand the real marker MK1 or the real marker MK2 are aligned with eachother, the parameter setting section 167 captures the real marker MK1 orthe real marker MK2 using the camera 60. The parameter setting section167 sets a transformation parameter and a camera parameter CP using thereal marker MK1 or the real marker MK2 included in the captured image.

FIG. 10 is a flow chart of a first setting mode. In the first settingmode, the parameter setting section 167 collects calibration data in astate where alignment regarding the right optical image display section26 is established, collects calibration data in a state where alignmentregarding the left optical image display section 28 is established, andsets a transformation parameter and a camera parameter CP.

In the first setting mode, first, the display setting section 165displays a marker image IMG on the right optical image display section26 (step S201). FIG. 11 is a diagram illustrating a marker image IMGdisplayed on the optical image display section 26. As illustrated inFIG. 11, the display setting section 165 displays an outer frame of asquare of a marker and outer frames of ten circles included in thesquare on the right optical image display section 26. The displaysetting section 165 displays the marker image IMG on the right opticalimage display section 26 as a red line. Meanwhile, in FIG. 11, portionsother than the right optical image display section 26 within the imagedisplay section 20 are not shown and will not be shown in the subsequentdrawings.

When the marker image IMG is displayed on the right optical imagedisplay section 26, the parameter setting section 167 prompts a user USto match the positions and poses of the marker image IMG and a realmarker MK2 with the HMD 100 worn on the user US so that the marker imageand the real marker are visually perceived so as to be aligned with eachother (step S210 of FIG. 10).

A message may further be displayed on the right optical image displaysection 26. In the case where the marker image IMG and the real markerMK2 are visually perceived by the user US so as to be aligned with eachother, the HMD 100 instructs the user US to operate a touch pad, topress a button, or to utter a sound command. In the case where theparameter setting section 167 receives these operations or the soundcommand, the camera 60 captures the marker MK2, that is, collectscalibration data (step S202) the case where the parameter settingsection 167 collects calibration data on the basis of the sound command,it is expected that the head of the user US will scarcely move. For thisreason, in an operation based on the sound command, it is possible tocollect calibration data in a state where there is a little deviationfrom alignment established by the user US, as compared to the case of atouch operation or the pressing of a button. As a result, the HMD 100having a high level of superposition accuracy of an AR image isobtained.

When the process of matching the positions and poses of the marker imageINC and the real marker MK2 (alignment process by visual observation) ofstep S210 of FIG. 10 and the collection of calibration data areperformed, the display setting section 165 displays the marker image IMGon the right optical image display section 26 as illustrated in FIG. 11,similar to the process of step S201 (step S203). Thereafter, theparameter setting section 167 prompts the user US to match the positionsand poses of the marker image IMG and a real marker MK1 with the HMD 100worn on the user so that the marker image IMG and the real marker MK1are visually perceived so as to be aligned with each other (step S220).The real marker MK1 is imaged in this state, and thus the parametersetting section 167 collects calibration data (step S204). Here, thereal marker MK1 is larger than the real marker MK2. For this reason, inthe process of step S220, in the case where the marker image IMG and thereal marker MK1 are visually perceived by the user US so as to bealigned with each other, a distance between the right optical imagedisplay section 26 and the real marker MK1 becomes larger than that inthe case of the real marker MK2.

The parameter setting section 167 performs processes of step S205 tostep S208 (steps SC205, SC230, SC206, SC207, SC240 and SC208) of FIG. 10with respect to the left optical image display section 28, as the sameprocesses as the processes of step S201 to step S204 in the rightoptical image display section 26. When processes (processes of step S201to step S208) in the first setting mode are performed with respect tothe right and left optical image display sections 26 and 28, theparameter setting section 167 can set a parameter group with respect tothe right optical image display section 26 and a parameter group withrespect to the left optical image display section 28 for minimizingExpression (15C) to be described later (step S209).

A-2-2. Setting of Parameters:

Here, a description will be given of a procedure of setting parametersof a transformation parameter and a camera parameter CP by the parametersetting section 167 using imaging data of the real marker MK2 andimaging data of the real marker MK1 which are obtained by the camera 60in a first setting mode. Meanwhile, in the first setting mode of thepresent embodiment, the camera parameter CP is not necessarily have tobe optimized, and may be fixed to a design value. However, in thepresent embodiment to be described below, an algorithm including acamera parameter CP as an optimization variable(s) is present so that auser US can optimize the camera parameter CP as necessary. In anotherembodiment, in the case where it is not necessary to optimize the cameraparameter CP, the following expressions may be dealt with using theseparameters as constants (fixed values).

A-2-2-1. With Regard to Camera Parameter:

As a camera parameter CP regarding the camera 60, four camera parameters(fx, fy, Cx, Cy) are used in the present embodiment. The cameraparameters (fx, fy) are focal lengths of the camera 60 which is animaging section, and are converted into the number of pixels on thebasis of the density of pixels. The camera parameters (Cx, Cy) arecalled the camera principal point position, means the center position ofa captured image, and may be expressed by, for example, a 2D coordinatesystem which is fixed to an image sensor of the camera 60.

The camera parameter CP can be known from the product specifications ofthe camera 60 constituting a principle portion of the imaging section(hereinafter, also referred to as a default camera parameter). However,in many cases, a camera parameter CP of a real camera greatly departsfrom a default camera parameter. In addition, when cameras are differentproducts in spite of having the same specifications, camera parameter CPof cameras for each product vary (are not even).

In the case where at least one of a position, size, and pose in an ARmodel displayed on the optical image display sections 26 and 28 as an ARimage is visually perceived by a user so as to be aligned with(superposed on) a real object, the camera 60 functions as a detectiondevice that detects the position and pose of the real object. At thistime, the parameter setting section 167 estimates the position and poseof the real object imaged by the camera 60 with respect to the camera 60using the camera parameter CP. Further, the parameter setting section167 transforms the position and pose into the position and pose of areal object with respect to the left optical image display section 28using a relative positional relationship between the camera 60 and theleft optical image display section 28 (right optical image displaysection 26). Further, the parameter setting section 167 determines theposition and pose of the AR model on the basis of the transformedposition and pose. In addition, the image processing section 160projects (transforms) the AR model having the position and the pose to adisplay region using a projection parameter, and writes the projected ARmodel in a display buffer (for example, the RAM 122). In addition, thedisplay control section 190 displays the AR model written in the displaybuffer on the left optical image display section 28. For this reason, inthe case where the camera parameters are the default camera parameters,the estimated position and pose of the real object may include errors.In this case, the displayed AR model and the real object, which are tobe superposed on or overlaid with each other, are visually perceived bya user as if there is an error in superposing the AR model on the realobject due to the errors of the estimated position and pose.

Consequently, in the present embodiment, the parameter setting section167 optimizes and sets a camera parameter CP using pieces of imagingdata of the real marker MK2 or the real marker MK1 during calibrationfor allowing an AR model to be superposed on an object and to bevisually perceived by a user US. In addition, the position and pose ofthe real object are detected (estimated) using the set camera parameterCP. In this manner, the degree to which a deviation generated betweenthe displayed AR model and a real object is visually perceived by a userUS becomes lower in displaying the AR model. As described later, evenwhen the same user US uses the same HMD 100, it is preferable that acamera parameter CP is set whenever calibration is performed and is usedfor a subsequent display in which at least one of the position, size,and orientation of an object is aligned with that of an AR model. Thisdoes not indicate that a user necessarily matches the positions andposes of a real marker MK2 or a real marker MK1 and a marker image IMOcorresponding to the real marker MK2 or the real marker MK1 with thesame level of accuracy during calibration. Even when a user US matchespositions and poses with different levels of accuracy, a cameraparameter CP is set accordingly, thereby suppressing an increase in adeviation of a superposition display in the case where an AR model and areal object are displayed so as to be superposed on each other.

A-2-2-2. With Regard to Transformation Parameter:

In addition, the HMD 100 of the present embodiment has a structure inwhich a relative positional relationship between the camera 60 and theoptical image display sections 26 and 28 changes. As understood from adescription of a default camera parameter, in the case where causing atleast one of the position, size, and pose of an AR model to be visuallyperceived by a user so as to be aligned with (superposed on) a realobject, the display of the AR model based on a relative positionalrelationship different from an actual relative positional relationshipbetween the camera 60 and the optical image display sections 26 and 28makes an error visually perceived in the displayed AR model and a realobject that are superposed on each other.

Consequently, in the present embodiment, a transformation parameterindicating a relative positional relationship (at least one of rotationsand translations) between a coordinate system of the camera 60, acoordinate system of the right optical image display section 26, and acoordinate system of the left optical image display section 28 isadjusted or set, during calibration for making an AR model visuallyperceived by a user so as to be superposed on an object. When the ARmodel is displayed using a spatial relationship (relative positionalrelationship) indicated by the thus set transformation parameter, thedegree to which a deviation is visually perceived by a user US becomeslower.

In the present embodiment, the parameter setting section 167 sets a lefttransformation parameter PML[R_(cam2left), t_(cam2left)] and a righttransformation parameter PMR[R_(cam2lright) t_(cam2right)] thatcorrespond to the right optical image display section 26 and the leftoptical image display section 28, respectively. A rotation matrixR_(cam2right) is three parameters that are determined by the rotation ofthree axes perpendicular to each other, and a translation matrixT_(cam2right) is three parameters that respectively correspond totranslations along the three axes. That is, the right transformationparameter PMR corresponding to the right optical image display sectionincludes a total of six parameters. Similarly, the transformationparameter corresponding to the left optical image display section 28 isa rotation matrix R_(cam2left) and a translation matrix T_(cam2left),and includes a total of six parameters. As described above, in thepresent embodiment, 16 parameters of four parameters included in acamera parameter CP and 12 transformation parameters indicating aspatial relationship are calculated.

A-2-2-3. Parameter Derivation Process:

In the following description, the camera 60 captures a real marker MK2(or a real marker MK1) in a state where the real marker MK2 (or the realmarker MK1) and a marker image IMG are visually perceived by a user USso as to be aligned with each other, and the parameter setting section167 acquires the captured image. The parameter setting section 167calculates a camera parameter and a transformation parameter usingExpression (15C) to be described later, on the basis of the acquiredcaptured image. In the present embodiment, a measurement value(s) or aninspection values) before the shipment of the HMD 100 from amanufacturing factory is used as an initial value(s) (i=0) in the casewhere a parameter group is derived. On the other hand, in anotherembodiment, a value(s) in the pose of either the camera 60 or theoptical image display sections 26 and 28 in the case where the movementthereof is maximized, or a value(s) in the middle pose in the movablerange may be used as an initial value(s).

FIG. 12 is a schematic diagram illustrating a spatial positionalrelationship in a state where a marker image IMG is displayed on onlythe right optical image display section 26. FIG. 12 schematicallyillustrates the case where a user US visually perceives a marker imageIMG displayed on the right optical image display section 26 from a righteye position RP which is set in advance as the position of an imaginaryright eye of the user US wearing the image display section 20.Meanwhile, in FIG. 12, only the image display section 20 within the HMD100 is shown, and the mounting band 90, the control section 10, and thelike are not shown. In other words, the image display section 20illustrated in FIG. 12 is the same image display section as the imagedisplay section 20 illustrated in FIGS. 1 to 3. In addition, FIG. 12illustrates a coordinate axis CD2 indicating a coordinate axis of anoutside scene which is a three-dimensional space to be imaged, and acoordinate axis CD1 indicating a coordinate axis of a two-dimensionalimage in which the coordinate axis CD2 is projected. The user USvisually perceives the marker image IMG displayed on the right opticalimage display section 26 as a marker MK1 which is present at a positionseparated from the image display section 20 at a distance L1.

As illustrated in FIG. 12, in the case where a user visually perceivesthe marker image IMG displayed on the right optical image displaysection 26 and a real marker MK1 which is included in an outside sceneand is positioned at the front so that the positions, sizes, andorientations of the marker image and the real marker are aligned witheach other (hereinafter, also referred to as the case where a user USestablishes alignment by his or her left eye LE (right eye RE)), thefollowing relationship of Expression (1C) is established betweencoordinate systems. Meanwhile, hereinafter, a description will be givenof the case where a marker image IMG is displayed on the left opticalimage display section 28 instead of being displayed on the right opticalimage display section 26.

$\begin{matrix}{{{CP} \times \left\lbrack {R_{o\; 2{dl}},t_{o\; 2{dl}}} \right\rbrack \times {ModelMatrix}} = {{CP} \times \left\lbrack {R_{{cam}\; 2\; {left}},t_{{cam}\; 2\; {left}}} \right\rbrack \times \left\lbrack {R_{{obj}\; 2\; {cam}},t_{{obj}\; 2{cam}}} \right\rbrack \times {ModelMatrix}}} & \left( {1C} \right)\end{matrix}$

Here, CP on each of the right and left sides indicates a cameraparameter CP of the camera 60. In addition, [R_(o2dl), t_(o2dl)]indicates a transformation matrix from a coordinate system fixed to areal object (in this case, a real marker MK2 or a real marker MK1) to acoordinate system fixed to the left optical image display section 28.Among these, [R_(o2dl)] indicates a 3×3 matrix indicating rotations, and[t_(o2dl] indicates a) 3×1 matrix indicating translations. Here,[R_(o2dl), t_(o2dl)] indicates the position and pose of the real objectwith respect to the left optical image display section 28. In addition,ModelMatrix indicates a 3×1 matrix indicating any one point on a modelmarker. The model marker is three-dimensional data (three-dimensionalmodel: but is a plan in the present embodiment) which is a basis in thecase where a marker image IMG is displayed on the optical image displaysection 28. The notation of [R_(o2dl), t_(o2dl)]×ModelMatrix goes by arule of the following Expression (2C).

[R _(o2dl) ,t _(o2dl)]×ModelMatrix=[R _(o2dl)]×ModelMatrix+[t_(o2dl)]  (2C)

The rule of the notation of Expression (2C) mentioned above is alsoapplied to other portions of Expression (1C).

Here, [R_(cam2left), t_(cam2left)] on the right side of Expression (1C)indicates a transformation matrix from the coordinate system of thecamera 60 to the coordinate system of the left optical image displaysection 28. The transformation matrix is constituted by a plurality oftransformation parameters that are set by the parameter setting section167. In addition, [R_(obj2cam), t_(obj2cam)] on the right side ofExpression (1C) indicates a transformation matrix from a coordinatesystem of a real object (a real marker MK2 or a real marker MK1) to thecoordinate system of the camera 60. In addition, [R_(obj2cam),t_(obj2cam)] indicates the position and pose of the real object withrespect to the camera 60.

From the relationship of Expression (1C), when alignment between amarker image IMG and the real marker MK2 or the real marker MK1 isestablished with respect to the left optical image display section 28,the following Expressions (3) and (4C) are established.

R _(obj2cam)=inv(R _(cam2left))*R _(o2d) _(l)   (3C)

t _(obj2cam)=inv(R _(cam2left))*(t _(o2d) _(l) −t _(cam2left))  (4C)

In the case where the pose of the real marker MK2 or the real marker MK1with respect to the camera 60 is applied to a model marker when it isassumed that the alignment of the left eye LE is established, any pointon the model marker transformed into the coordinate system of the camera60 is expressed as P_(cl) (X_(cl), Y_(cl), Z_(cl)) by the followingExpression (5C).

$\begin{matrix}\begin{matrix}{P_{cl} = \begin{bmatrix}X_{cl} \\Y_{cl} \\Z_{cl}\end{bmatrix}} \\{= {{R_{{obj}\; 2{cam}} \times {ModelMatrix}} + t_{{obj}\; 2{cam}}}}\end{matrix} & \left( {5C} \right)\end{matrix}$

Here, when R_(obj2cam) and t_(obj2cam) are erased by Expression (3C) andExpression (4C), Expression (5C) changes to the following Expression(6C).

$\begin{matrix}\begin{matrix}{P_{cl} = \begin{bmatrix}X_{cl} \\Y_{cl} \\Z_{cl}\end{bmatrix}} \\{= {{{inv}\left( R_{{cam}\; 2{left}} \right)}\left( {{R_{o\; 2d_{l}} \times {ModelMatrix}} + t_{o\; 2d_{l}} - t_{{cam}\; 2{left}}} \right)}}\end{matrix} & \left( {6C} \right)\end{matrix}$

Here, R_(o2d1) and t_(om1) respectively indicate rotations andtranslations from the coordinate system of the real marker MK2 or thereal marker MK1 to the coordinate system of the left optical imagedisplay section 28. In the present embodiment, the marker image IMG isfixed and displayed at a predetermined position (for example, thecenter) on the left optical image display section 28 with apredetermined orientation and a predetermined size. Then, when the userUS aligns the marker image IMG displayed on the left optical imagedisplay section 28 with the real marker MK2 or the real marker MK1,R_(o2dl) and t_(o2dl) become predetermined rotations and translationswhich coincide whit the predetermined position, orientation and size ofthe marker image IMG. Here, T_(cam2left) indicates translation from thecoordinate system of the camera to the coordinate system of the leftoptical image display section 28.

$\begin{matrix}{R_{o\; 2d_{l}} = \begin{bmatrix}1 & 0 & 0 \\0 & 1 & 0 \\0 & 0 & 1\end{bmatrix}} & \left( {7C} \right) \\{t_{o\; 2d_{l}} = \begin{bmatrix}0 \\0 \\{- a}\end{bmatrix}} & \left( {8C} \right) \\{t_{{cam}\; 2{left}} = \begin{bmatrix}{D\; 1} \\{D\; 2} \\{D\; 3}\end{bmatrix}} & \left( {9C} \right)\end{matrix}$

Elements in Expressions (7C) and (8C) mentioned above are constants (ais L1 of FIG. 12) in the present embodiment. Elements D1, D2, and D3 inExpression (9C) indicate initial values in the present embodiment, andmay vary during a parameter derivation process. Meanwhile, as understoodfrom FIG. 12, in the present embodiment, in a coordinate system fixed tothe image display section 20, a direction of light emitted to the eyesof a user US from the optical image display sections 26 and 28 (imagedisplay section 20) is parallel to a Z-axis direction.

When a model marker expressed as Expression (5C) is projected onto animage captured by the camera 60, coordinates of the model marker on thecaptured image are as follows.

$\begin{matrix}{x_{iml} = {{F_{x}\frac{X_{cl}}{Z_{cl}}} + C_{x}}} & \left( {10C} \right) \\{y_{iml} = {{F_{y}\frac{Y_{cl}}{Z_{cl}}} + C_{y}}} & \left( {11C} \right)\end{matrix}$

Here, (Fx, Fy) indicates focal lengths of the camera 60, and (Cx, Cy)indicates principal point position coordinates of the camera 60.

When coordinates of a feature element of a marker in a captured imageobtained by actually capturing the real marker MK2 or the real markerMK1 by the camera 60 are represented as (u₁, v₁), a difference between(u₁, v₁) and (x_(im1), y_(im1)) is as follows.

$\begin{matrix}{e_{i} = {\begin{bmatrix}e_{x} \\e_{y}\end{bmatrix} = {\begin{bmatrix}{u_{li} - x_{imli}} \\{v_{li} - y_{imli}}\end{bmatrix} = {i = {\left. 1 \right.\sim 9}}}}} & \left( {12C} \right)\end{matrix}$

A subscript i in Expression (12C) is an integer indicating a featureelement in a marker and has a value of 1 to 9. The parameter settingsection 167 derives the sum of squares expressed as Expression (13C)with respect to the alignment of the left eye LE.

E _(L)=Σ_(i=1) ⁹((u _(li) −x _(imli))²+(v _(li) −y _(imli))²)  (13C)

Also in the case where the user establishes alignment between a markerdisplayed on the right optical image display section 26 and the realmarker MK2 or the real marker MK1 using the right eye RE, the sum ofsquares expressed as Expression (14C) is derived similarly.

E _(R)=Σ_(i=1) ⁹((u _(ri) −x _(imri))²+(v _(li) −y _(imri))²)  (14C)

A cost function E expressed as Expression (15C) is defined by the sum ofE_(R) and E_(L).

E=E _(R) +E _(L)  (15C)

A parameter for minimizing (global minimum) E is obtained byoptimization calculation accompanied by iterative calculation such as aGaussian Newton's method or a Levenberg-Marquardt method.

In the present embodiment, the camera parameter CP of the camera 60, atransformation parameter indicating rotation (R_(cam2left)) andtranslation (T_(cam2left)) from the coordinate system of the camera 60to the coordinate system of the left optical image display section 28,and a transformation parameter indicating rotation (R_(cam2right)) andtranslation (T_(cam2right)) from the coordinate system of the camera 60to the coordinate system of the right optical image display section 26are set by optimization.

A Jacobian matrix which is used for iterative calculation for minimizingthe cost function E expressed as Expression (15C) is expressed asExpression (16C).

$\begin{matrix}{J_{L} = \begin{bmatrix}\frac{\partial x_{imli}}{\partial p} \\\frac{\partial y_{imli}}{\partial p}\end{bmatrix}} & \left( {16C} \right)\end{matrix}$

Here, variables x_(mli) and Y_(mli) on the right side of Expression(16C) are expressed by Expressions (10C) and (11), respectively, andx_(cl) and y_(cl) in Expressions (10C) and (11C) are expressed byExpression (6C). In addition, a variable p on the right side ofExpression (16C) is Fx, Fy, Cx, and Cy that are included in the cameraparameter CP of the camera 60, six Euler's angles constituting rotationR_(cam2left) and R_(cam2right) indicating a spatial relationship betweenthe camera 60 and the optical image display sections 26 and 28, and sixtranslation components constituting translation T_(cam2left) andT_(cam2right). The parameter setting section 167 can search for theglobal minimum of Expression (15C) on the basis of the Jacobian matrixof Expression (16C) and a minute variation of a variable p. A cameraparameter CP and a transformation parameter are obtained by a variable pcorresponding to the global minimum.

When the camera parameter CP and the transformation parameter are set,the display setting section 165 displays a setting image SIM on theoptical image display sections 26 and 28 for the purpose of causing auser US to confirm the set transformation parameter and camera parameterCP using an image, as the process of step S15 in the calibrationexecution process illustrated in FIG. 9. In the case where a specificobject (a real marker MK1 in this example) is included in an imagingrange of the camera 60, the CPU 140 derives the position and pose of thespecific object with respect to the camera 60 using the set cameraparameter CP. In addition, the CPU 140 transforms the position and poseof the specific object with respect to the camera 60 into the positionand pose of the specific object with respect to the optical imagedisplay sections 26 and 28, using the set transformation parameter. Thedisplay setting section 165 gives the transformed position and pose toan AR model, projects the AR model, and displays the AR model on theoptical image display sections 26 and 28 as a setting image SIM. In thisexample, when a user US can be allowed to visually perceive the positionand pose of the setting image SIM to be aligned with the position andpose of the specific object and to track the movement of the specificobject, the setting of the transformation parameter and the cameraparameter CP is sufficient. When internal coordinates of a real markeror an AR model corresponding to the real marker are defined as X, aposition (u, v) on a display image in the left optical image displaysection 28 is expressed as Expression (17C) with a transformationparameter.

$\begin{matrix}{\begin{bmatrix}u \\v\end{bmatrix} \simeq {{{{RP}\left\lbrack {R_{{cam}\; 2{left}},T_{{cam}\; 2{left}}} \right\rbrack}\left\lbrack {R_{{obj}\; 2{cam}},T_{{obj}\; 2{cam}}} \right\rbrack} \cdot X}} & \left( {17C} \right)\end{matrix}$

Here, [R_(obj2cam), T_(obj2cam)] indicates parameters (a rotation matrixand a translation matrix) which indicate a spatial relationship betweena real marker MK2 or a real marker MK1 and the camera 60, and arecalculated by the parameter setting section 167 by applying, forexample, a homography to a captured image of the real marker MK2 or thereal marker MK1 which is imaged by the camera 60. In the case where themarker specification section 166 is to detect a specific object otherthan the real marker MK2 and the real marker MK1, the parameter settingsection 167 sets a spatial relationship between the specific object andthe camera 60 using another method. Meanwhile, also regarding the rightoptical image display section 26, a position (u, v) of a display imageis derived by the relational expression similar to Expression (17C). Asexpressed in Expression (17C), the display setting section 165 displayspixels of an AR model as an AR image at positions (u, v) which aredetermined on the basis of at least a spatial relationship between thereal marker MK2 or the real marker MK1 and the camera 60 and spatialrelationships between the camera 60 and the right/left optical imagedisplay sections 26/28. The display setting section 165 can make a userUS visually perceive the AR model (setting image SIM in this case) and aspecific object so that at least one of the position, size, andorientation of the AR model is aligned with at least one of theposition, size, and orientation of the specific object. Meanwhile, RP onthe right side in Expression (17C) indicates a projection parameter (oralso referred to as a rendering parameter) which is determined in thecase where a projection model similar to a pinhole camera model is used,and is expressed as the following Expression (18C) in the presentembodiment.

$\begin{matrix}{{RP} = \begin{bmatrix}{\frac{2}{W}F_{x}} & 0 & {1 - \frac{2C_{x}}{W}} & 0 \\0 & {\frac{2}{H}F_{y}} & {1 - \frac{2C_{y}}{H}} & 0 \\0 & 0 & {- \frac{\left( {n + f} \right)}{f - n}} & \frac{{- 2}{nf}}{f - n} \\0 & 0 & {- 1} & 0\end{bmatrix}} & \left( {18C} \right)\end{matrix}$

Here, Fx and Fy in Expression (18C) indicate focal lengths convertedinto the number of pixels of a projector in the HMD 100, W indicates thenumber of pixels (resolution) of the left optical image display section28 in a left-right direction, H indicates the number of pixels(resolution) of the left optical image display section 28 in an up-downdirection, and Cx and Cy indicate the center position of a displayimage. Two upper rows of the projection parameter contribute to thederivation of u and v. Here, f and n are coefficients for determining acorrelation with normalized device coordinates having a normalized depthbetween 0 and 1. That is, these coefficients are coefficients foradjusting a depth in a rendering buffer (depth buffer), but do notdirectly contribute to the derivation of a position (u, v) of a displayimage.

Here, when it is assumed that an image of the specific object or the ARmodel X is imaged by the camera 60, Expression (19C) is establishedbetween a point of the specific object or the AR model X and acorresponding point on the captured image.

$\begin{matrix}{{{image}\begin{pmatrix}x \\y\end{pmatrix}} = {\begin{pmatrix}f_{x} & 0 & C_{x} \\0 & f_{y} & C_{y} \\0 & 0 & 1\end{pmatrix}{\left( {R,T} \right) \cdot X}}} & \left( {19C} \right)\end{matrix}$

Here, (R, T) on the right side of Expression (19C) indicates atransformation matrix indicating the position and pose of a specificobject with respect to the camera 60, and is expressed by a cameracoordinate system. The left side of the transformation matrix is acamera parameter CP. As schematically shown in Expression (19C), (R, T)is estimated on the basis of a correlation between a point in a realspace or a three-dimensional coordinate system and a point on a capturedimage, and thus it is preferable that the camera parameter CP isappropriate for the accurate estimation of the position and pose of areal object.

Since the same coordinate point of an AR model in three-dimension isrendered to a display buffer in the image processing section 160, thenormalized device coordinates (NDC) thereof are expressed as Expression(20C) using Expression (18C).

$\begin{matrix}{\begin{pmatrix}u \\v \\w \\z\end{pmatrix} = {\begin{bmatrix}{\frac{2}{W}F_{x}} & 0 & {1 - \frac{2C_{x}}{W}} & 0 \\0 & {\frac{2}{H}F_{y}} & {1 - \frac{2C_{y}}{H}} & 0 \\0 & 0 & {- \frac{\left( {n + f} \right)}{f - n}} & \frac{{- 2}{nf}}{f - n} \\0 & 0 & {- 1} & 0\end{bmatrix}{\left( {l,d} \right)\begin{bmatrix}1 & 0 & 0 & 0 \\0 & {- 1} & 0 & 0 \\0 & 0 & {- 1} & 0 \\0 & 0 & 0 & 1\end{bmatrix}}{\left( {R,T} \right) \cdot X}}} & \left( {20C} \right)\end{matrix}$

Expression (20C) is expressed by homogeneous coordinate expression.Here, X on the right side of Expression (20C) indicates an internalcoordinate of a point on a model marker or an AR model, and is expressedby a coordinate system which is fixed to the model. In addition, (R, T)on the left side of X in Expression (20C) indicates the position andpose of a specific object which is expressed by a camera coordinatesystem, and indicates the same position and pose as (R, T) in Expression(19C). A 4×4 matrix having 0, 1, and -1 as elements on the left side of(R, T) in Expression (20C) is a transformation matrix for transformingthe orientation of a coordinate axis, and is provided for the sake ofconvenience in the present embodiment because the definition of acoordinate axis in a forward direction in a camera coordinate system isdifferent from that in a display section coordinate system. In addition,(I, d) on the left side of the transformation matrix for transformingthe orientation of a coordinate axis in Expression (19C) indicates aspatial relationship between the camera 60 and the optical image displaysection 26 (28), and indicates a 4×4 transformation matrix constitutedby rotation I and translation d that are expressed by a coordinatesystem of the optical image display section 26 (28). A coordinate pointexpressed by Expression (20C) is a position expressed by (u′, v′) ofExpression (21C) in an image plane of the optical image display section26 (28);

$\begin{matrix}\begin{matrix}{\begin{pmatrix}u^{\prime} \\v^{\prime}\end{pmatrix} = \begin{bmatrix}{{{- \frac{2}{W}}{F_{x} \cdot \frac{{R_{1} \cdot X} + d_{x} + T_{x}}{{{- R_{3}} \cdot X} + d_{z} - T_{z}}}} - \left( {1 - \frac{2C_{x}}{W}} \right)} \\{{{- \frac{2}{W}}{F_{y} \cdot \frac{{R_{2} \cdot X} + d_{y} + T_{y}}{{{- R_{3}} \cdot X} + d_{z} - T_{z}}}} - \left( {1 - \frac{2C_{y}}{H}} \right)}\end{bmatrix}} \\{\simeq \begin{bmatrix}{{\frac{2}{W}\left( {C_{x} + {F_{x}\frac{T_{x}}{T_{z}}}} \right)} - 1} \\{{\frac{2}{H}\left( {C_{y} + {F_{y}\frac{- T_{y}}{T_{z}}}} \right)} - 1}\end{bmatrix}}\end{matrix} & \left( {21C} \right)\end{matrix}$

where each of R1, R2 and R3 stands for a corresponding row vector in therotation matrix in (R, T), and each of Tx, Ty, and Tz stands for acorresponding component of the translation vector in (R, T), (R, T)having a 4×4 matrix form.

In the present embodiment, when calibration is successfully performed, auser US wearing the HMD 100 visually perceives a setting image SIMdisplayed on the optical image display sections 26 and 28 and a specificobject (real marker MK1 in this example) so that the position, size,orientation, and depth perception of the setting image SIM are alignedwith the position, size, orientation, and depth perception of thespecific object.

FIG. 13 is a diagram illustrating an example of a field of view of auser US who visually perceives a setting image SIM displayed inassociation with a specific object. In the example illustrated in FIG.13, a real marker MK1 is adopted as the specific object. Aftercalibration is executed, the display setting section 165 displays thesetting image SIM on the right and left optical image display sections26 and 28 in accordance with the position and orientation (pose) of theimaged real marker MK1, using a transformation parameter and a cameraparameter CP which are set by the parameter setting section 167. Thesetting image SIM is an image constituting sides of a regularhexahedron. As illustrated in FIG. 13, the bottom of the regularhexahedron of the setting image SIM is displayed so as to be matchedwith the real marker MK1. The user US can recognize the accuracy ofcalibration by visually recognizing a spatial relationship between theactual marker MK1 as a specific object and the setting image SIM. Whenthe user US does not visually perceive the real marker MK1 and thesetting image SIM so that the real marker and the setting image matcheach other, the user can execute calibration again in a first settingmode or a second setting mode. As illustrated in FIG. 13, the opticalimage display sections 26 and 28 or the sound processing section 170 maypresent a character image or a sound for promoting either thecontinuation of an AR display function by the success of calibration (orviewed in an overlapping manner) or the re-execution of calibration, tothe user.

A-2-2-4. Automatic Collection of Calibration Data:

First, a coordinate axis of a coordinate system which is fixed to theoptical image display sections 26 and 28 will be described by taking thecase of the right optical image display section 26 as an example, inpreparation for the description of an automatic collection process ofcalibration data. In the present embodiment, a Z-axis of a coordinatesystem of the right optical image display section 26 is aligned with anormal direction of a display region visually perceived by a user US inthe case where the user US appropriately wears the HMD 100. For thisreason, the Z-axis may indicate a direction to which the face of theuser US is directed. An X-axis is perpendicular to the Z-axis, and issubstantially parallel to a direction in which the right optical imagedisplay section 26 and the left optical image display section 28 arearranged. For this reason, the X-axis may indicate the left-rightdirection of the user US. In addition, a Y-axis is perpendicular to boththe Z-axis and the X-axis. For this reason, the Y-axis may indicate theup-down direction of the user US.

In the above-mentioned first setting mode, a user US transmits theestablishment of alignment by the visual observation of a marker imageIMG and real markers MK1 and MK2 to the parameter setting section 167 byoperating a touch pad, pressing a button, or uttering a sound command.In the case where the parameter setting section 167 receives one ofthese operations or the sound command, the camera 60 captures the markerMK1 or MK2, that is, collects calibration data. That is, the HMD 100uses an operation or utterance by a user US as a trigger of thecollection of calibration data. However, as described below, the HMD 100may be configured such that calibration data is automatically collected,instead of having such a configuration.

FIG. 14 illustrates a flow of an automatic collection process ofcalibration data according to an embodiment. In this process, first, themarker specification section 166 starts capturing, and one of theoptical image display sections 26 and 28 (hereinafter, the right opticalimage display section 26) starts to display a marker image IMG (stepS211). The marker specification section 166 executes binarization oneach imaging frame imaged by the camera 60 to thereby extract a realmarker MK2. The marker specification section 166 determines whether ornot the real marker MK2 is included in an imaging range (step S212). Inthe case where the marker specification section 166 determines that thereal marker MK2 is not included in the imaging range (step S212: NO),the marker specification section continuously monitors the detection ofthe real marker MK2 from the imaging range.

In the process of step S212, in the case where the marker specificationsection 166 determines that the real marker MK2 is included in theimaging range (step S212: YES), the marker specification section derivesthe position and pose of the real marker MK2 with respect to the camera60 and starts to track the derived position and pose (step S212A).

The derived position and pose of the real marker MK2 are expressed by acamera coordinate system. In other words, the position and pose are aposition and a pose with respect to the camera 60. Consequently, theposition and pose of the real marker MK2 with respect to the camera 60are transformed into an approximate position and pose which areexpressed by a coordinate system of the right optical image displaysection 26, that is, a provisional position and pose, using a defaultspatial relationship between the camera 60 and the right optical imagedisplay section 26. The wording “default spatial relationship” refersto, for example, one spatial relationship which is present between bothends of a relative movable range between the camera 60 and the rightoptical image display section 26. A 4×4 transformation matrix Tindicating a position and a pose, that is, rotations and translations,is expressed as Expression (21AC).

T(marker to display)=T(camera to display)*Tracking pose  (21AC)

Here, “T(marker to display)” on the left side indicates an approximateposition and pose of the real marker MK2 with respect to the rightoptical image display section 26, and “T(camera to display)” on theright side indicates a default transformation matrix from a coordinatesystem of the camera 60 to a coordinate system of the right opticalimage display section 26, and “Tracking pose” indicates the position andpose of the real marker MK2 with respect to the camera 60.

Whether or not rotation differences around the X-axis and the Y-axis inthe coordinate system of the optical image display section 26 between amodel marker and the real marker MK2 are less than a predetermined valuemay be determined as in the following Expression (21BC) and Expression(21CC).

abs(A _(x)−approximated A _(x))<threshold  (21BC)

abs(A _(y)−approximated A _(y))<threshold  (21CC)

Here, “A_(x)” and “A_(y)” indicate rotation angles of a model markeraround the X-axis and the Y-axis, respectively. The values of thethresholds in the above may be different from each other. In addition,“approximated A_(x)” and “approximated A_(y)” indicate approximaterotation angles of the real marker MK2 around the X-axis and the Y-axis,and are Euler's angles that are all expressed in units of degrees. Inaddition, “Abs” means the taking of an absolute value of a value.Meanwhile, as described above, the model marker refers to a modelexpressed in a three-dimensional coordinate space, and is to beprojected to 2D and displayed as a marker image IMG.

Next, in the coordinate system of the right optical image displaysection 26, whether or not approximate translations (T_(x)′, T_(y)′)along the X-axis and the Y-axis of the real marker MK2 are close totranslations (t_(x), t_(y)) of a model marker may be determined usingthe following relational expressions of Expression (21DC) and Expression(21EC).

$\begin{matrix}{\frac{{Abs}\left( {T_{x}^{\prime} - t_{x}} \right)}{t_{x}} < {threshold}} & \left( {21{DC}} \right) \\{\frac{{Abs}\left( {T_{y}^{\prime} - t_{y}} \right)}{t_{y}} < {threshold}} & \left( {21{EC}} \right)\end{matrix}$

The values of the thresholds in the above may be different from eachother. In the following description, the above-mentioned difference inrotation angle will be collectively referred to as a “rotationdifference A”, and the above-mentioned difference in translation will becollectively referred to as a “translation difference D”.

Returning to the flow of FIG. 14, the marker specification section 166determines whether or not the rotation difference A is equal to orgreater than the threshold value (threshold) thereof and the translationdifference D is equal to or greater than the threshold value thereof(step S213A). In the case where it is determined that both the rotationdifference A and the translation difference D are equal to or greaterthan the respective threshold values (step S213A: Yes), the displaysetting section 165 changes the color of a marker image to a red color,and displays a character image for prompting alignment on the rightoptical image display section 26 (step S214A). In the case where thedetermination result in step S213A is “negative” (step S213A: No), themarker specification section 166 determines whether or not the rotationdifference A is less than the threshold value and the translationdifference D is equal to or greater than the threshold value (stepS213B). In the case where it is determined that the rotation differenceA is less than the threshold value and the translation difference D isequal to or greater than the threshold value (step S213B: Yes), thedisplay setting section 165 changes the color of a marker image to ayellow color and displays a character image for prompting alignment onthe right optical image display section 26 (step 6214B). In the casewhere the determination result in step S213B is “negative” (step S213B:No), the marker specification section 166 determines whether or not therotation difference A is less than the threshold value and thetranslation difference D is less than the threshold value (step S213C).In the case where it is determined that both the rotation difference Aand the translation difference D are less than the respective thresholdvalues (step S213C: Yes), the display setting section 165 changes thecolor of a marker image to a green color (step 2140). In the case wherethe determination result in step S213C is “negative” (step S213C: No), aprocess to be executed next is returned to the determination of stepS213A. After step S2140, the marker specification section 166 determineswhether a state where both the rotation difference A and the translationdifference D are less than the respective threshold values and a statewhere the head of a user US is stabilized have been continued, forexample, for two seconds or more (step S215A.). In the case where it isdetermined that the determination result in step S215A is affirmative,the parameter setting section 167 starts the clocking or reverseclocking during a predetermined period of time. The reverse clockingstarted by the parameter setting section 167 is referred to as acount-down process. The predetermined period of time according to thepresent embodiment is one second. The display setting section 165divides one second into three parts, and presents count-down informationof “3”, “2”, “1”, and “0” that are displayed or output as a sound withthe lapse of time. The parameter setting section 167 acquires a capturedimage of the real marker MK2 which is obtained by the camera 60 ascalibration data at a timing when “0” is presented. The parametersetting section 167 may also acquire a plurality of the captured imagesobtained from the beginning of the predetermined period of time untilthe end of the period so as to obtain locations of the circle centers ata timing when “0” is presented by filtering or processing the capturedimages. In the latter, the obtained locations of the circle centers maybe more stable.

The predetermined period of time in the count-down process is notlimited to one second. It is preferable that the predetermined period oftime is long to such a degree that a user US can improve alignmentbetween the marker image IMG and the real marker MK2 by visualobservation in terms of accuracy and is short to such a degree that theuser US can maintain alignment therebetween by visual observation whichis already established with a high level of accuracy. In this regard,“one second” is an empirically suitable length.

The parameter setting section 167 can determine whether a head is in astabilized state or a substantially static state, from the position of afeature point of the real marker MK2 in a captured image obtained by thecamera 60, the output of an IMU built into the HMD 100, and acombination thereof.

FIG. 15 illustrates a flow of an automatic collection process ofcalibration data according to another embodiment.

In the flow of FIG. 15, portions between step S212 and step S216 aredifferent from those in the flow of FIG. 14, and the other portions aresubstantially the same as those in the flow of FIG. 14. Therefore, onlydifferent portions will be described below.

In the flow illustrated in FIG. 15, after step S212A, the parametersetting section 167 determines whether a real marker MK2 is present inan imaging range of the camera 60 and the head of a user US is in astable state for a predetermined period of time, for example, twoseconds (step S2153). In the case where the parameter setting section167 determines that a real marker is present in the imaging range of thecamera 60 and the head of the user US is in a stable state for twoseconds (step S215B: Yes), the process proceeds to step S216. In thecase where the determination result in step S2153 is “negative”, theparameter setting section 167 continuously monitors a captured image andthe movement of the head of the user US until this determination issatisfied.

FIG. 16 illustrates a flow of an automatic collection process ofcalibration data according to another embodiment.

The flow of FIG. 16 is different from the flow of FIG. 14 in thatdetermination steps SC218 and SC219 are added between step S216 and stepS217 as compared to the flow of FIG. 14, and the other portions aresubstantially the same as those in the flow of FIG. 14. Therefore, onlydifferent portions will be described below.

In the process of FIG. 14, when a count-down process is started (stepS216), calibration data is collected when a predetermined period of timeelapses even when alignment by visual observation is not established anylonger as a result of a great change in the pose of a user US. In thiscase, it is not possible to collect accurate calibration data. In thepresent embodiment, in the case where the movement of the head of theuser US within a predetermined period of time in the count-down processhas a value equal to or greater than a threshold value, it is possibleto stop the count-down process and to perform a process of collectingcalibration data again. Specifically, after the count-down process ofstep S216 is started, the parameter setting section 167 determineswhether or not a predetermined period of time (count-down period) haselapsed (step S218). In the case where the determination result of theparameter setting section 167 in step S218 is “negative” (step S218:No), it is determined whether or not the movement of the head of theuser US has a value equal to or greater than a threshold value, on thebasis of an angular velocity or an acceleration which is output by anIMU (step S219). In the case where the determination result in step S219is “negative”, the parameter setting section 167 collects calibrationdata at a point in time when the predetermined period of time haselapsed (step S281: Yes) in the process of step S218 (step S217). Instep S219, in the case where the parameter setting section 167determines that the movement of the head of the user US has a valueequal to or greater than a threshold value, the process of step S213Aand the subsequent processes are performed.

As described above, when a parameter group is adjusted, it is preferableto collect calibration data in a state where a marker image IMGdisplayed on the HMD 100 and a real marker MK2 are visually perceived bya user US so as to be aligned with each other (alignment isestablished). Whether or not the marker image IMG and the real markerMK2 are visually perceived by the user US with a high level of accuracyaffects the accuracy of calibration for deriving a parameter group.

However, when a user touches the controller 10 for an instruction or atrigger for data collection even when a marker image and a real markerare visually perceived by the user so as to be aligned with each otherwith a high level of accuracy, alignment may deviate by the touchespecially when the real maker is relatively small, and calibration datais collected (the real marker is imaged) in a state where the alignmentdeviates. The possibility of alignment deviating due to an utteranceoperation or a pronouncing operation even in the case of a sound commandis not zero. When such a parameter group obtained in a state wherealignment deviates is used, the superposition display of an AR image isnot performed with a high level of accuracy.

In the automatic collection process of calibration data which isdescribed with reference to FIGS. 14 to 16, it is possible to provide aconfiguration in which the HMD 100 can determine that a marker image anda real marker are visually perceived by a user so as to be aligned witheach other even when the user does not necessarily perform a touchoperation or give a sound command. In addition, calibration data can becollected using this determination as a trigger, and thus ahighly-accurate parameter group is obtained. As a result, it is possibleto obtain the HMD 100 in which the superposition display of an AR imageis performed with a high level of accuracy. Meanwhile, in the presentembodiment, it is determined whether or not a “rotation difference A” isless than a threshold value on the basis of a difference between tworotation angles. However, it may be determined whether or not the“rotation difference A” is less than a threshold value on the basis of adifference between rotation angles around one axis or a differencebetween rotation angles around three axes. The same is true of a“translation difference D”.

A-2-3. Second Setting Mode:

In a second setting mode, the parameter setting section 167 receives anoperation of a user US with respect to results of the calibrationexecuted in a first setting mode and corrects the results of thecalibration. In other words, the parameter setting section 167 correctsthe position, size, and depth perception of an AR image (AR model) whichis displayed in association with a specific object, on the basis of thereceived operation.

FIG. 17 is a diagram illustrating an example of a field of view VR whichis visually perceived by a user US in the case of transitioning to asecond setting mode. FIG. 17 illustrates a real marker MK1 as a specificobject included in an outside scene which is passed through, a settingimage SIM which is displayed on the optical image display sections 26and 28 in association with the real marker MK1, and eight icons and acursor image CS which are displayed on the optical image displaysections 26 and 28 in a second setting mode. The eight icons are iconsfor changing a setting mode in the second setting mode by an operationreceived by the operation input section 135 of the control section 10.In the example illustrated in FIG. 17, the position of the real markerMK1 of the outside scene and the position of the bottom of a regularhexahedron which is the displayed setting image SIM do not overlap eachother when seen from a user. In other words, the accuracy of calibrationis not sufficient. In this case, in the present embodiment, a user UScan correct results of calibration performed on the real marker MK1 andthe setting image SIM by operating the operation input section 135 inthe second setting mode.

When a track pad of the operation input section 135 receives apredetermined operation, the parameter setting section 167 moves theposition of the cursor image CS displayed on the optical image displaysections 26 and 28. When a decision button of the operation inputsection 135 is pressed down in a state where the cursor image CSoverlaps any of the eight icons, the parameter setting section 167transitions to a setting mode which is associated with the iconoverlapping the cursor image CS.

An icon IC1 is an icon for transitioning to a mode for enlarging orreducing the setting image SIM when being selected. In a mode of theicon IC1, the operation input section 135 receives a predeterminedoperation, and thus the parameter setting section 167 changes the sizeof the setting image SIM displayed on the optical image display sections26 and 28 by correcting either one or both of the above-mentioned cameraparameter CP and projection parameter. In the present embodiment, theparameter setting section 167 adjusts the size of the setting image SIMby correcting either one or both of focal lengths F_(x) and F_(y) in thecamera parameter CP and focal lengths F_(x) and F_(y) in the projectionparameter. A user US can change the size of the setting image SIM so asto be aligned with the size of the real marker MK1 by selecting the iconIC1.

An icon IC2 is an icon for transitioning to a mode for vertically movingthe display position of the setting image SIM when being selected. In amode of the icon IC2, the operation input section 135 receives apredetermined operation, and thus the parameter setting section 167corrects transformation parameters of the respective optical imagedisplay sections 26 and 28, so that the optical image display sections26 and 28 vertically move the setting image SIM in a displayable range.In the present embodiment, the parameter setting section adjusts aparameter Rx indicating rotation around the X-axis among thetransformation parameters to thereby vertically (that is, in the Y-axisdirection) move the setting image SIM. Meanwhile, in the display of thetransformation parameter, X and Y indicate the X-axis and the Y-axis ofa coordinate system fixed to the optical image display sections 26 and28. Furthermore, as described above, the X-axis may indicate theleft-right direction of a user US wearing the HMD 100, and the Y-axismay indicate the up-down direction.

An icon IC3 is an icon for transitioning to a mode for horizontallymoving the display position of the setting image SIM when beingselected. In a mode of the icon IC3, the operation input section 135receives a predetermined operation, and thus the parameter settingsection 167 corrects transformation parameters of the respective opticalimage display sections 26 and 28, and the optical image display sections26 and 28 horizontally move the setting image SIM in a displayablerange. In the present embodiment, the parameter setting section 167adjusts a parameter R_(y) indicating rotation around the Y-axis amongthe transformation parameters to thereby horizontally (that is, theX-axis direction) move the setting image SIM. A user US can change thedisplay position of the setting image SIM so as to align the position ofthe setting image SIM with the real marker MK1 by selecting the icon IC2and the icon IC3.

An icon IC4 is an icon for adjusting the depth perception of the settingimage SIM which is visually perceived by a user US when being selected.In a mode of the icon IC4, the operation input section 135 receives apredetermined operation, and thus the parameter setting section 167adjusts Cx which is an X component of a display principal point inprojection parameters of the respective optical image display sections26 and 28 to thereby change the depth perception of the setting imageSIM. When the amount of adjustment of the depth perception is set to beΔCx, the display principal point of the right optical image displaysection 26 is set to be Cx_right, and the display principal point of theleft optical image display section 28 is set to be Cy_left, the displayprincipal points after the adjustment of the depth perception areexpressed as the following Expression (21FC) and Expression (21GC),respectively.

Cx_left=Cx_left+ΔCx  (21FC)

Cx_right=Cx_right−ΔCx  (21GC)

In the expression of the projection parameter, X indicates the X-axis ofa coordinate system fixed to the optical image display sections 26 and28. As described above, the X-axis in this case may indicate theleft-right direction of a user US wearing the HMD 100. According toExpression (21FC) and Expression (21GC), center positions of right andleft image regions displayed on the right and left optical image displaysections 26 and 28 vary by the same amount in the opposite directions,and thus the right and left image regions come close to or recede fromeach other. As a result, when the user US observes the right and leftimage regions with both eyes, the user can visually perceive an AR image(AR object) at an appropriate convergence angle depending on a distanceof a specific object. For this reason, depth perceptions of the specificobject and the AR image are aligned with each other therebetween.

An icon IC5 is an icon for returning the correction of a parameter grouphaving been executed so far to the value of the parameter group beforethe execution, when being selected. An icon IC6 is an icon for updatingthe correction of a parameter group having been executed so far as a newparameter group (a camera parameter CP, a transformation parameter, anda projection parameter) and storing the new parameter group, when beingselected.

An icon IC7 is an icon for returning to the last mode which precedes thesecond setting mode, when being selected. In other words, when the iconIC7 is selected, the display setting section 165 displays a selectionscreen regarding to which setting mode of the second setting mode andthe first setting mode illustrated in step S13 of FIG. 9 the transitionis performed, on the optical image display sections 26 and 28.

An icon IC8 is an icon for causing the display setting section 165 todisplay “help” which is an explanation on the optical image displaysections 26 and 28, when being selected. When “help” is displayed, anexplanation regarding an operation for executing calibration in a secondsetting mode and a calibration execution process is displayed on theoptical image display sections 26 and 28. An icon IC9 is an icon forterminating a calibration execution process including a second settingmode, when being selected.

FIG. 17 is a diagram illustrating an example of a field of view VR whichis visually perceived by a user US when the display position of asetting image SIM is changed in a second setting mode. In this example,the orientation, size, and depth perception of the setting image SIMalready match those of a real marker MK1, and the superposition accuracyof an AR image is improved by adjusting only display positions inhorizontal and up-down directions. FIG. 18 illustrates a state where thedisplay position of the setting image SIM is set so that the position ofthe bottom of a regular hexahedron which is the setting image SIM isaligned with the position of the real marker MK1, by a predeterminedoperation being received by the operation input section 135 after anicon IC2 and an icon IC3 are selected in the second setting mode. As aspecific operation, first, the display position of the setting image SIMin the up-down direction is aligned with the real marker MK1 by the iconIC2 being selected, and the display position of the setting image SIM inthe left-right direction is aligned with the real marker MK1 by the iconIC3 being selected. Thereafter, when an icon IC5 is selected, atransformation parameter is updated and stored.

As described above, in the HMD 100 according to the first embodiment,the camera 60 captures an outside scene including a specific object. Theparameter setting section 167 acquires, from the camera 60, a capturedimage of the specific object in a state where the specific object isvisually perceived by a user US so that the position and pose of a modelmarker displayed on the optical image display section 26 (28) as amarker image IMG are substantially aligned with those of a real markerMK1 (MK2). The parameter setting section 167 sets a parameter group onthe basis of at least the acquired captured image. The parameter groupincludes a camera parameter CP of the camera 60, transformationparameters from 3D to 3D which indicate a spatial relationship betweenthe camera 60 and each of the right optical image display section 26 andthe left optical image display section 28, and projection parametersfrom 3D to 2D for displaying any 3D model on the optical image displaysections 26 and 28 as an image. The HMD 100 estimates the position andpose of the specific object using the camera parameter CP. In addition,the HMD 100 displays an AR image on each of the optical image displaysections 26 and 28 so that an AR model associated with the specificobject is visually perceived by a user US as an AR image in a statewhere the position and pose of the AR model and the position and pose ofthe specific object correspond to each other, preferably, aresubstantially aligned with each other, using the transformationparameters and the projection parameters. Therefore, it is possible toprovide the MID 100 capable of making a user US to visually perceive thespecific object and the AR model (AR image) associated with the specificobject so that the specific object and the AR model correspond to eachother, preferably, are substantially aligned with each other, bycalibration in a first setting mode.

In addition, in the HMD 100 according to the first embodiment, theparameter setting section 167 sets at least one parameter among thecamera parameter CP, the transformation parameters, and the projectionparameters so that a user US visually perceives a setting image SIMdisplayed on the optical image display sections 26 and 28 in a statewhere the position, size, and depth perception of the setting image SIMand the position, size, and depth perception of a real marker MK1 (MK2)correspond to each other, preferably, are aligned with each other, inaccordance with an operation received by the operation input section 135in a second setting mode. For this reason, in the HMD 100 according tothe first embodiment, the operation input section 135 receives apredetermined operation, and thus the user US can further manuallycorrect a positional relationship between the specific object and the ARmodel (AR image). Thereby, the user US can easily perform calibrationand execute calibration with a higher level of accuracy.

In addition, in the HMD 100 according to the first embodiment, theparameter setting section 167 sets a parameter regarding at least one ofa camera parameter CP and a transformation parameter, using a capturedimage obtained by the camera 60 in a first setting mode. In addition,the parameter setting section 167 sets a parameter regarding at leastone of a camera parameter CP, a transformation parameter, and aprojection parameter in accordance with a predetermined operationreceived by the operation input section 135 in a second setting mode.For this reason, in the HMD 100 according to the first embodiment, thecamera parameter CP and the transformation parameter that are set in thefirst setting mode can be individually set in the second setting mode.Thereby, it is possible to individually adjust parameters that have notbeen adjusted in the first setting mode. As a result, it is possible toimprove accuracy at the time of displaying a specific object and an ARimage associated with the specific object so that the specific objectand the AR image are superposed on each other.

In addition, in the HMD 100 according to the first embodiment, thecamera 60 is disposed so as to be able to change the orientation thereofwith respect to the mounting band 90. The optical image display sections26 and 28 capable of displaying a setting image SIM are disposed so asto be able to the relative positions thereof with respect to themounting band 90. As a result, the camera 60 is disposed so that theposition and orientation thereof can be changed with respect to theoptical image display sections 26 and 28 (HMD 100 is also referred to asa “camera movable HMD”), and thus it is necessary to set calibration inaccordance with a change in a positional relationship between the camera60 and the optical image display sections 26 and 28. In the END 100according to the first embodiment, a user US can easily executecalibration required in accordance with a change in positionalrelationship by executing a first setting mode and a second settingmode. In an HMD (also referred to as a “camera fixed HMD”) in which aspatial relationship between a camera and the optical image displaysections 26 and 28 is fixed, the optimization of a spatial relationshipbetween the camera and the optical image display section may also beperformed by setting rotations and translations indicating the spatialrelationship to be variable as calibration parameters, every timecalibration (first setting mode) is performed by a user US. Suchcalibration is useful when the above-mentioned spatial relationshipsover individual HMDs are largely dispersed due to manufacturing errorseven in the camera fixed HMD.

In addition, in the HMD 100 according to the first embodiment, thedisplay setting section 165 displays a setting image SIM in associationwith a real marker MK2 or a real marker MK1 which is an imaged specificobject, on the basis of a camera parameter CP and a transformationparameter that are set by the parameter setting section 167. For thisreason, in the HMD according to the first embodiment, a user US canvisually perceive results of calibration which is executed and determinewhether or not it is necessary to execute additional adjustment, andthus user convenience is improved.

In the HMD 100 according to the first embodiment, in the case where amarker image IMG and a real marker MK2 have a predetermined positionalrelationship, a distance between the right optical image display section26 having the marker image IMG displayed thereon and the real marker MK2has a value equal to or less than a predetermined value, and the head ofa user US is stopped in an alignment process, the display settingsection 165 displays a character image indicating count-down on theright optical image display section 26. After the count-down has passed,the parameter setting section 167 makes the camera 60 image the realmarker MK2 to thereby set a camera parameter CP and a transformationparameter. For this reason, in the HMD 100 according to the firstembodiment, when imaging data of the real marker MK2 which is requiredfor the execution of calibration is acquired, it is not necessary topress a specific button or to execute sound recognition, and imagecapturing by the camera 60 is automatically performed. Accordingly, itis possible to reduce a deviation in superposition (alignment) betweenthe real marker MK2 and the marker image IMG due to a user's operation,the generation of a sound, or the like. Thereby, it is possible toacquire imaging data of highly-accurate alignment and to improve theaccuracy of calibration.

In addition, in the HMD 100 according to the first embodiment, theparameter setting section 167 calculates an imaginary position and poseof a specific object with respect to the right optical image displaysection 26 or the left optical image display section 28, using acalculated spatial relationship between the camera 60 and the specificobject and a default spatial relationship between the camera and theoptical image display sections 26 and 28 as a predetermined positionalrelationship and a predetermined value of a distance. The parametersetting section 167 compares the imaginary position and pose of thespecific object with an imaginary position and pose of a model markerdisplayed (projected) as a marker image IMG with respect to the opticalimage display sections 26 and 28 to thereby calculate a deviation of aparameter regarding the rotation and a deviation of a parameterregarding the translation thereof of both the positions and poses. Thedisplay setting section 165 displays information regarding count-downuntil the camera 60 captures an outside scene on the right optical imagedisplay section 26 or the left optical image display section 28, on thebasis of a difference between the deviations. In addition, the displaysetting section 165 displays a character image for prompting a user USto perform alignment between the marker image IMG and a real marker MK2which is a specific object, on the right optical image display section26 in accordance with the difference in the parameter regarding rotationor the difference in the parameter regarding translation. For thisreason, in the HMD 100 according to the first embodiment, the user UScan recognize a deviation between the marker image IMG and the realmarker MK2 as visual information and to easily execute calibration witha high level of accuracy.

In addition, in the HMD 100 according to the first embodiment, thedisplay setting section 165 displays an image, obtained by changing thecolor of a marker image IMG associated with a real marker MK2 as aspecific object, on the right optical image display section 26 asinformation indicating count-down until the camera 60 captures an image.For this reason, in the HMD 100 according to the first embodiment, it ispossible to make a user US visually perceive a timing at which thecamera 60 captures the real marker MK2, as visual information, and theuser US can execute calibration sensuously.

B. Second Embodiment

A second embodiment is different from the first embodiment in a realmarker imaged by a camera 60 during the execution of calibration and aportion of a first setting mode for capturing the real marker. For thisreason, in the second embodiment, processes different from those in thefirst embodiment will be described, and the other same processes asthose in the first embodiment will not be described.

FIG. 19 is a front view illustrating a rear face of a control section 10a according to the second embodiment. FIG. 19 illustrates a rear face inthe case where a surface having an operation input section 135 in thecontrol section 10 a formed thereon is defined as a front face. Asillustrated in FIG. 19, a real marker MK3 obtained by reducing a realmarker MK1 is disposed on the rear face of the control section 10 a.

In a first setting mode of the second embodiment, first, a displaysetting section 165 displays a marker image IMG on a right optical imagedisplay section 26, similar to the first setting mode in the firstembodiment (step S201 of FIG. 10) A parameter setting section 167prompts a user US to perform alignment between the marker image IMG andthe real marker MK3 disposed on the rear face of the control section 10(step S210) When the alignment between the real marker MK3 and themarker image IMG is performed, the display setting section 165 displaysa marker image IMG, having a size different from that of the markerimage IMG displayed on the right optical image display section 26 instep S201, on the right optical image display section 26 unlike thefirst embodiment (step S202). The parameter setting section 167 promptsthe user US to perform alignment between the marker image IMG having asize different from that in the process of step S201 and the real markerMK3 (step S220). Here, two marker images IMG having different sizes aregenerated by two-dimensionally projecting the same model markers havingdifferent imaginary positions (distance along the Z-axis) with respectto optical image display sections 26 and 28 by a projection parameter inthe present embodiment. In the process of step S220 in the secondembodiment, even when there is one real marker to be used, there is anattempt to establish alignment with respect to two marker images IMGhaving different sizes, and thus the user US aligns the right opticalimage display section 26 having the marker image IMG displayed thereonand the real marker MK3 with each other while changing a distancetherebetween, similar to the first embodiment. The process of step S203and the subsequent processes in the first setting mode are the same asthe processes with respect to the right optical image display section26, and thus a description thereof will be omitted here.

In an HMD 100 according to the second embodiment, even when there is onereal marker MK3, it is possible to execute calibration with a high levelof accuracy by changing a marker image IMG displayed on the rightoptical image display section 26 or the left optical image displaysection 28 in the first setting mode.

C. Third Embodiment

A third embodiment is different from the first embodiment in the shapeof a real marker imaged by a camera 60 during the execution ofcalibration and the shape of a marker image IMG corresponding to thereal marker. For this reason, in the third embodiment, the shape of areal marker and the specification of a real marker which are differentfrom those in the first embodiment will be described, and the otherconfigurations will not be described.

FIGS. 20 and 21 are schematic diagrams illustrating an example of a realmarker according to the third embodiment. FIG. 20 illustrates athree-dimensional block which is formed in the form of steps, as a realmarker MK4. Similarly, FIG. 21 illustrates a three-dimensional block inwhich blocks such as semicircular cylinders are added to a triangularpyramid, as a real marker MK5. A marker image storage section 138 baccording to the third embodiment stores data of three-dimensionalmodels corresponding to the real marker MK4 and the real marker MK5together with the feature points thereof. For this reason, a markerspecification section 166 can estimate the position and pose of the realmarker MK4 or the real marker MK5 with respect to the camera 60 byestimating a correlation between the feature points stored in the markerimage storage section 138 b and feature points in a captured image. As amethod of specifying a feature point, edge detection in which a distanceto a specific position is specified by a stereo camera and the specifieddistance is used, or the like may be used, or a known technique can beused. The position and pose of the real marker MK4 or MK5 may beestimated by methods other than the above method, for instance with amonocular camera. Once the position and pose of the real marker MK4 orMK5 have been obtained, they may be used to establish 2D-3D featurecorrespondences so that one of the parameters described in the aboveembodiments is derived based on the correspondences.

The storage section may store a 3D model marker having a shape similarto the shape of the real marker MK4 or the real marker MK5. Meanwhile,similarly to the first embodiment, the model marker is defined within animaginary three-dimensional space. In an HMD 100 b, the model marker,which is set to have a predetermined position and pose with respect tooptical image display sections 26 and 28, is projected by theabove-mentioned projection parameter and is displayed on the opticalimage display sections 26 and 28 as a marker image IMG. Hereinafter,similarly to the first embodiment, a user US establishes alignmentbetween the marker image IMG and the real markers MK4 and MK5.

As described above, in the HMD 100 according to the third embodiment,calibration is executed using a three-dimensional model having morefeature points than a two-dimensional model, and thus it is possible toexecute calibration with a high level of accuracy. Besides, potentiallyproviding more feature points, the three-dimensional model may help userimprove alignment accuracy especially in rotations and/or scales.

D. Modification Example

Meanwhile, the invention is not limited to the above-describedembodiments, and can be implemented in various aspects without departingfrom the scope of the invention. For example, the followingmodifications can also be made.

D-1. Modification Example 1C

In the first to third embodiments, as illustrated in FIGS. 1 to 3, adescription has been given of the HMDs 100 in which the position andorientation of the camera 60 with respect to the optical image displaysections 26 and 28 change. The calibration described in the first tothird embodiments is also effective in an HMD 101 in which the positionof the camera 60 with respect to the optical image display sections 26and 28 does not change. Meanwhile, hereinafter, the HMD 100 described inthe first to third embodiments is also referred to as a “camera movableHMD”, and the HMD 101 in which the position of the camera 60 is fixed isalso referred to as a “camera fixed HMD”. For example, even in the caseof the camera fixed HMD, if the variance of errors that are present inrotations and translations indicating a spatial relationship between thecamera 60 and the optical image display sections 26/28 is large amongindividual HMDs having been produced under the same specifications, acalibration process may be performed so as to adjust a relationshipincluding the rotation and the translation every time before a user USdisplays an AR image.

FIG. 22 illustrates tables showing elements related to parameters thatare set in a first setting mode. In the case where a transformationparameter is set in the first setting mode, it is possible to make aselection of a distance from the optical image display sections 26 and28 to a specific object, a selection regarding which parameter ispreferentially optimized, and the like.

As illustrated in FIG. 22, “display of a marker image IMG” includes twodisplay modes of a both-eyes display and a single-eye display. Theboth-eyes display indicates the case where a marker image IMG issimultaneously displayed on the right optical image display section 26and the left optical image display section 28 and a user US performsalignment therebetween. The single-eye display indicates the case wherea marker image IMG is displayed on the right optical image displaysection 26 or the left optical image display section 28 and a user USseparately performs alignment on the right optical image display section26 and the left optical image display section 28. In a camera movableHMD which is the HMD 100 and a camera fixed HMD which is the HMD 101according to the above embodiments, a single-eye display is adopted.

The “structures of a real marker and a model marker” include “2D” usinga two-dimensional object (a plane figure or the like) and “3D” using athree-dimensional object, as a model marker and real markers MK1, MK2,MK3, and MK4 serving as the base of the marker image IMG. In a cameramovable HMD which is the HMD 100 and a camera fixed HMD which is the HMD101, a marker image IMG obtained by projecting a two-dimensional modelmarker, and two-dimensional real markers MK1/MK2 may be adopted asdescribed in the first embodiment.

The “position and pose of a model marker (marker image IMG)” indicateswhether a marker image IMG displayed on the optical image displaysections 26 and 28 is fixedly displayed on the optical image displaysections 26 and 28 or is customized when a user US performs alignment,which will be described in detail below.

In the present embodiment, a model marker which is three-dimensionallyrepresented is used, and the model marker is rendered (drawn) as amarker image IMG as if the model marker is directly fixed to a placeseparated from the optical image display sections 26 and 28 by apredetermined distance. An imaginary position and pose of the modelmarker with respect to the optical image display sections 26 and 28 aredetermined (fixed) in advance. The position and pose are usuallyselected with respect to a specific HMD on the basis of the followingconditions.

(1) Real marker MK1 or MK2 is simultaneously viewed by a user US and thecamera 60. For example, a camera mounted on an HMD may be positioned ata right leg of a spectacle type structure. Therefore, when an alignmentdistance is excessively short, the markers may not be included in acaptured image.

(2) The position and pose that are determined in advance are selectedfor a place of a position and a pose (particularly, a distance) in whicha large number of AR scenarios are generated. This is because thesuperposition accuracy (or calibration accuracy) of an AR image is highin a vicinity region including a place where alignment is performed, andis reduced in the case of deviating from the region.

However, the above-mentioned position and pose that are determined inadvance, that is, an alignment pose which is determined in advance isnot necessarily essential in other embodiments. According to otherembodiments, the position and pose of real markers MK1 and MK2 (MK4,MK5) imaged by a camera 60 are continuously tracked, and a model markeris displayed on optical image display sections 26 and 28 as a markerimage IMG using the tracked position and pose and an existing or defaultparameter group. In addition, the rendering (drawing) of a model marker(marker image IMG) is updated in accordance with the tracked positionand pose, and a user US determines the position and pose of a markerimage IMG recognized as being best for alignment by the user US. Forexample, the user US can move around the real marker MK1 or MK2 untilthe real marker MK1 or MK2 look unique and a position and a pose (fieldof view) in which an existing parameter group (existing calibrationresults) shows an obvious error are found. The parameter setting section167 stops updating a position and a pose using a new tracking pose at apoint in time which is designated by the user US. In this case, themodel marker (marker image IMG) is stopped and drawn, and the user USmakes a change to his or her own position and pose so as to be able tovisually perceive the marker image IMG and the real marker MK1 or MK2which are aligned with each other. The user US can also establishalignment by such a method.

An image processing section 160 includes a rendering engine used todisplay a model marker, and OpenGL in the rendering engine generates CGusing a matrix product of “PVM”. Here, P indicates a projectionparameter, V denotes the position and pose of a model marker withrespect to the optical image display sections 26 and 28, and M denotesinternal coordinates of the model marker (3D model). In the case where amarker image having a model marker projected thereto is desired to berendered (drawn) for alignment by visual observation of a user US, V maybe limited to, for example, [I:0, 0, d1] as in the first embodiment.Meanwhile, here, I denotes a unit matrix and is rotation expressed by acoordinate system of the optical image display section 26 or 28, and dof (0, 0, d) is an alignment distance and is translation expressed by acoordinate system of the optical image display section 26 or 28.

Customized alignment means that an existing or default parameter groupis used as V instead of using a fixed V and the positions and poses(hereinafter, tracking poses) of the real markers MK1 and MK2, which aretracked at a point in time when a user US fixes the tracking of thepositions and poses, are used.

V=H·T  (21HC)

In Expression (21H) T indicates a tracking pose (position and pose withrespect to the camera 60) which is obtained by tracking through thecamera 60, and H indicates a transformation matrix (spatialrelationship) between a present or default camera and a display.

Advantages of the customized alignment are shown as follows.

(1) A case of a camera movable HMD in which a spatial relationshipbetween a camera 60 and optical image display sections 26 and 28 changesgreatly depending on a user' wearing condition and a distance range ofan AR scenario: in a certain case, there is the possibility that acalibration process according to the present embodiment cannot besuccessfully performed using either one of real marker MK1 or MK2,having different sizes, which are located at corresponding distances.This is because the camera 60 may not view (complement) the real markersMK1 and MK2. The real marker MK1 or MK2 may deviate from a capturedimage obtained by the camera 60 to the upper or lower outside portionsthereof. In this case, the prompting of a user US to select an alignmentdistance is a solution.

(2) A case where a user US desires to achieve a higher superpositionaccuracy of an AR image for a distance of a specific AR scenario,particularly, a case where a distance that the user US is interested inis not in a calibration range: in a case where the user US obtainsaccuracy in a wide distance range, the user can rather select aplurality of distances within the range, and can perform alignment aplurality of times.

(3) In a case where a user US uses a 3D object created by himself orherself as a real marker, the user US needs to define (determine) analignment distance.

Referring back to FIG. 22, a “parameter to be adjusted” indicates aparameter which is adjusted in a calibration process. As describedlater, a camera parameter CP of the camera 60 included in the HMD 100does not necessarily need to be adjusted. In addition, even in the caseof a camera fixed HMD, it may be preferable to adjust a transformationparameter indicating a spatial relationship (rotations and translations)between the camera 60 and the right and/or left optical image displaysections 26 and/or 28.

D-2. Modification Example 2C

Factory calibration (initial calibration) of optical image displaysections 26 and 28 and a camera 60:

For example, in a service station, a camera parameter CP of the camera60, a spatial relationship (transformation parameter) between the camera60 and the optical image display sections 26 and 28, and initial values(default values) of projection parameters of the optical image displaysections 26 and 28 may be derived by a process having the followingsteps.

1. Calibration of a high-resolution measuring camera is separatelyperformed.2. Calibration of the camera 60 included in the HMD 100 is separatelyperformed to thereby derive a camera parameter CP.3. The HMD 100 and the measuring camera are set up on a special jig. Aplanar pattern is installed as a world coordinate system.4. Several positions are defined on the jig with respect to themeasuring camera. In addition, the position and pose of the measuringcamera with respect to the planar pattern are estimated at each of thepositions.5. An imaginary pattern having an imaginary position and pose withrespect to the optical image display section 26 is projected to theoptical image display section 26. Meanwhile, the imaginary position andpose with respect to the optical image display section 26 are the sameas the position and pose of a planar pattern with respect to the opticalimage display section 26.6. The measuring camera is moved to the defined plurality of positions,and an image of the imaginary pattern displayed on the optical imagedisplay section 26 is captured at each of the positions.7. A 3D position which is projected using the captured images isreconstructed.8. An internal parameter (projection parameter) of the optical imagedisplay section 26 is estimated using a 2D-3D correlation.9. The poses of two cameras (the camera 60 and the measuring camera)with respect to the planar pattern are calculated, and a transformationparameter between the camera 60 and the optical image display section 26is solved.10. The steps of 4 to 9 are repeated with respect to the optical imagedisplay section 28.

D-3. Modification Example 3C

A camera movable HMD which is the HMD 100 and a camera fixed HMD whichis the HMD 101 are different from each other in the presence or absenceof changes in the position and orientation of a camera 60 with respectto optical image display sections 26 and 28. For this reason, in thecamera fixed HMD and the camera movable HMD, a parameter which ispreferentially optimized may be changed to a different parameter in afirst setting mode. For example, in the camera fixed HMD, a cameraparameter CP may be optimized by calibration, with respect to the cameramovable HMD.

A parameter to be optimized includes a camera parameter CP and atransformation parameter. In the camera fixed HMD, a camera parameter CPis optimized by calibration by using a design value during themanufacture of the HMD 101 as a fixed value. A camera parameter CP to beoptimized includes a focal length of the camera 60 and a principal pointposition (center position of a captured image) of the camera 60. In thecamera fixed HMD, a transformation parameter to be optimized includes arotation parameter and a translation parameter of each of X, Y, and Zaxes of each of the right optical image display section 26 and the leftoptical image display section 28.

In the camera movable HMD, a camera parameter CP does not necessarilyneed to be optimized. In the camera movable HMD, since the camera 60 ismovable with respect to the optical image display sections 26 and 28, adeviation of a transformation parameter may greatly affect the displayof an AR image rather than a deviation of a camera parameter, and thus atransformation parameter is preferentially optimized.

D-4. Modification Example 4C

In the first embodiment, the display setting section 165 displays acharacter image for prompting alignment on the right optical imagedisplay section 26, but various modifications can be made to a method ofprompting a user to perform alignment. For example, the display settingsection 165 may output a sound of “displacement is detected” throughearphones 32 and 34 to thereby prompt a user to perform alignment. Inaddition, various modifications can be made to the character image, andthe display setting section 165 may display an image of an arrowindicating a direction in which displacement is corrected, on the rightoptical image display section 26, instead of displaying the characterimage.

In other embodiments, various modifications can be made to a method ofnotifying a user of a time until capturing. For example, a displaysetting section 165 may output a number indicating a time untilcapturing as a sound through earphones 32 and 34 to thereby notify auser of the time until capturing. In addition, the display settingsection 165 may display only a number of “3” on a right optical imagedisplay section 26, for example, during count-down to thereby notify auser of a time until capturing. In addition, the display setting section165 may display a straight line on the right optical image displaysection 26 in such a manner that the length of the straight line isreduced as time goes by, thereby expressing the length of a time untilcapturing.

D-5. Modification Example 5C

In the first embodiment, calibration is executed by performing alignmenttwice on each of the right optical image display section 26 and the leftoptical image display section 28 in the first setting mode, but variousmodifications can be made to the number of times of alignment. Thenumber of times of alignment is increased, and thus a parameter forexecuting calibration with a higher level of accuracy may be set in theoptimization of each parameter using a Jacobian matrix. Hereinafter, anexample of the optimization of a parameter will be described.

The number of times of alignment is set to be A, and the number offeature elements (for example, the center of a circle) of real markerMK1 or MK2 is set to be n. When the number of parameters to be adjustedwith respect to a pair of a camera 60 and an image display section (inthe first embodiment, a pair of the camera 60 and either one of theright and left optical image display sections 26 and 28) is set to be m,the total number of parameters to be optimized is M and satisfies thefollowing Expression (22C).

M≦2n  (22C)

Regarding each iteration, a pseudo code of optimization is as follows.First, regarding each alignment, a Jacobian matrix Js is calculated withrespect to a pair of the camera 60 and the right optical image displaysection 26 and a pair of the camera 60 and the left optical imagedisplay section 28. The Jacobian matrix Js can be expressed as a 2n×Mmatrix. Next, a 2n×1 residual matrix es is calculated. Theabove-mentioned process is performed on each of A alignments.

Next, the Jacobian matrix Js having a size of 4n×M is merged to a matrixJ. The residual matrix es is connected thereto to thereby generate a4n×1 matrix e. Elements of the matrix e may be expressed as Expression(12). In addition, an increase value dp of a selected parameter iscalculated.

dp=inverse(transpose(J)*J+B)*transpose(J)e  (23C)

Here, B in Expression (23C) indicates a correction matrix and is used toavoid a convergence problem in the case where transpose (J)*J inExpression (23C) is not successfully adjusted. Meanwhile, in theabove-mentioned expression, “inverse( )” means an inverse matrix of amatrix within parentheses, and “transpose( )” means a transposed matrixof a matrix within parentheses. Next, a parameter p is updated as inExpression (24C).

p=p+dp  (24C)

In the case where the updated parameter p satisfies terminationconditions, optimization is terminated. In the case where the updatedparameter does not satisfy termination conditions, optimization isiteratively performed.

D-6. Modification Example 6C

In the above-described embodiments, the parameter setting section 167also derives a camera parameter CP by optimization. However, in the casewhere there is less variation from a design value during manufacture, adesign value may be set with respect to the camera parameter CP, andonly a spatial relationship between the camera 60 and the optical imagedisplay sections 26 and 28 may be derived. In an HMD 100 according tothis modification example, the number of parameters to be optimized isdecreased. In addition, it is possible to reduce a time for optimizing aparameter while optimizing a parameter for making a cost function Esmaller by substituting a design value for a parameter having lessvariation in manufacturing.

In the above-described embodiments, a marker displayed on the rightoptical image display section 26 and a marker displayed on the leftoptical image display section 28 are the same marker image IMG, butvarious modifications can be made to the marker image IMG and the realmarkers MK1 and MK2. For example, images of the markers respectivelydisplayed on the right optical image display section 26 and the leftoptical image display section 28 may be different images. In addition,various modifications can be made to the marker image IMG and the realmarkers MK1 and MK2 in accordance with the accuracy of a parameter to bederived. For example, the number of circles included in the real markerMK1 is not limited to ten, may be greater than ten, and may be less thanten. In addition, a plurality of feature points included in the realmarker MK1 may not be the center of the circle, and may be simply thecenter of gravity of a triangle. In addition, a plurality of straightlines, which are not parallel to each other, may be formed within thereal marker MK1, and intersections between the straight lines may bespecified as a plurality of feature points. In addition, the markerimage IMG and the real markers MK1 and MK2 may be different markers. Inthe case where a marker image and a real marker are superposed on eachother, various modifications can be made to the marker image and thereal marker in a range in which a user visually perceives the superposedportion. For example, alignment may be performed on a rectangular markerimage so that the center of a real marker which is a substantiallyperfect circle is aligned with the center of a marker image.

In the above-described embodiments, in the case where a camera parameterCP of the camera 60 is optimized, focal lengths (Fx, Fy) and cameraprincipal point positions (center positions of a captured image) (Cx,Cy) are optimized. Instead of these or together with this, one ofdistortion coefficients may be optimized as the camera parameter CP ofthe camera 60.

D-7. Modification Example 7C

The following additional constraint conditions may be added to the costfunction of Expression (15C) defined in the first embodiment. Alignmentby the visual observation of a user US is separately performed withrespect to each of optical image display sections 26 and 28, and thusthe alignment errors thereof are not necessarily the same as each other.For this reason, among two translations of a camera 60 with respect tothe right and left optical image display sections 26 and 28, theestimation of a Ty component may greatly vary between the optical imagedisplay sections 26 and 28. In the case where two Ty components aregreatly different from each other, a user experiences a fusion problemof a stereoscopic view. Since a maximum difference in a translation Tybetween the camera 60 and the optical image display sections 26 and 28is a predetermined finite value, a function defined as in the followingExpression (25C) as a function of an absolute value of a differencebetween right and left Ty may be added to Expression (15C). Expression(25C) is then introduced into the following Expression (26C).

$\begin{matrix}{{abs}\left( {{T_{y -}{left}} - {T_{y -}{right}}} \right)} & \left( {25C} \right) \\{1/{\exp \left( {- \frac{\left( {{ds} - {ts}} \right)^{2}}{2d^{2}}} \right)}} & \left( {26C} \right)\end{matrix}$

Here, elements included in Expression (26C) are expressed as thefollowing Expression (27C) to Expression (29C).

ds=(T _(y—)left−T _(y—)right)²  (27C)

ts=(acceptable difference)²  (28C)

d ²=(maximum defference)²−(acceptable difference)²  (29C)

In the above-mentioned Expression (28C) and Expression (29C),“acceptable difference” is an allowable Ty difference, and “maximumdifference” is a maximum value of an estimated Ty difference.

Expression (15C) is as follows.

$\begin{matrix}{E = {E_{L} + E_{R} + {1/{\exp \left( {- \frac{\left( {{ds} - {ts}} \right)^{2}}{2d^{2}}} \right)}}}} & \left( {30C} \right)\end{matrix}$

Here, “acceptable difference” and “maximum difference” may beempirically set. In addition, when a difference between Ty_left andTy_right is large, a cost function E increases. For this reason, thecost function E approximates a global minimum while a variable p(particularly, a right Ty_right and a left Ty_left) is forced so as tofall within a request range. In the calculation of optimization, a newrow (horizontal row of a matrix) is added to a Jacobian matrix J, and ane matrix is generated in iteration steps of the optimization. An errorcalculated from the above-mentioned function is added to the end of thee matrix. The new row in the Jacobian matrix J takes a value of zerowith respect to all parameters except for Ty_left and Ty_right. Inaddition, entries (initial values) corresponding to the two parametersmay be set to 1 and −1, respectively.

The invention is not limited to the above-described embodiments andmodification examples, but various configurations can be realizedwithout departing from the scope of the invention. For example, thetechnical features in the embodiments and modification examples whichcorrespond to the technical features of the respective aspects describedin Summary can be appropriately replaced or combined with each other, inorder to solve a portion or all of the above-described problems or inorder to achieve a portion or all of the above-described effects. Thetechnical features can be appropriately deleted unless the technicalfeatures are described as essential herein.

The entire disclosures of Japanese patent applications No. 2015-235305,filed on Dec. 2, 2015, No. 2015-235306, filed on Dec. 2, 2015, and No.2015-235307, filed on Dec. 2, 2015, are expressly incorporated byreference herein.

What is claimed is:
 1. A head-mounted display device comprising: animage display section configured to transmit light from an outside sceneand to display an image; an imaging section configured to capture theoutside scene; an image setting section configured to cause the imagedisplay section to display an image; an operation input sectionconfigured to accept an operation; an object specification sectionconfigured to derive spatial relationship of a specific object withrespect to the imaging section in the case where the specific object isincluded in the outside scene captured by the imaging section, and aparameter setting section, wherein the image setting section causes theimage display section to display a setting image based at least on thederived spatial relationship and a predetermined parameter group so asto allow a user to visually perceive a condition that a position andpose of the setting image and those of the specific object correspond toeach other, and after the setting image is displayed by the imagedisplay section, the parameter setting section adjusts at least oneparameter in the parameter group based at least on a predeterminedoperation accepted by the operation input section so as to allow theuser to visually perceive a condition that at least a position and poseof the setting image and those of the specific object are substantiallyaligned with each other, in the case where the operation input sectionreceives the predetermined operation.
 2. A head-mounted display deviceaccording to claim 1, wherein the parameter group includes a set oftrans formation parameters that represents spatial relationship betweenthe imaging section and the image display section, and the parametersetting section adjusts at least one of the transformation parameters inresponse to the predetermined operation so as to allow the user tovisually perceive a condition that the position of the setting image andthat of the specific object are substantially aligned with each other inat least one of an up-down direction and a left-right direction.
 3. Ahead-mounted display device according to claim 2, wherein the set oftransformation parameters includes parameters that represent threerotations around orthogonal three imaginary axes in a coordinate systemof the image display section, and the parameter setting section adjustsa parameter that represents a rotation around one of the three axes, theone axis being closest to being parallel with an imaginary linerepresenting a direction that eyes of the user are arranged when thehead-mounted display device is mounted by the user, thereby changing aposition of the setting image in the up-down direction.
 4. Ahead-mounted display device according to claim 2, wherein the set oftransformation parameters includes parameters that represent threerotations around orthogonal three imaginary axes in a coordinate systemof the image display section, and the parameter setting section adjustsa parameter that represents a rotation around one of the three axes, theone axis being closest to being perpendicular to both of first andsecond imaginary lines, the first imaginary line representing adirection that eyes of the user are arranged and the second imaginaryline representing a direction that the user's forehead is facing whenthe head-mounted display device is mounted by the user, thereby changinga position of the setting image in the left-right direction.
 5. Ahead-mounted display device according to claim 1, wherein the imagedisplay section includes a left image display unit a right image displayunit, the parameter group includes a first set and a second set ofprojection parameters, each of the first set and second set ofprojection parameters representing projection from 3D (three dimensionalcoordinate system) to 2D (two dimensional coordinate system), the firstset of projection parameters being used by the left image display unitto display a 3D object as a first image, the second set of projectionparameters being used by the right image display unit to display the 3Dobject as a second image, and the parameter setting section adjusts atleast one of the first set and the second set of projection parameters,based at least on the predetermined operation, so as to allow the userto visually perceive a condition that depth perception of the settingimage and that of the specific object is substantially aligned with eachother.
 6. A head-mounted display device according to claim 5, whereinthe first set of projection parameters and the second set of projectionparameters include respective parameters that represent a left displayprincipal position of the left image display unit and a right displayprincipal position of the right image display unit, and the parametersetting section adjusts at least one of the respective parameters,thereby changing the depth perception of the setting image.
 7. Ahead-mounted display device according to claim 1, wherein the parametergroup includes a set of camera parameters of the imaging section, and aset of projection parameters that represents projection from 3D (threedimensional coordinate system) to 2D (two dimensional coordinatesystem), the set of projection parameters being for causing the imagedisplay section to display a predetermined 3D object as an image, andthe parameter setting section adjusts at least one of the cameraparameters and the projection parameters, based at least on thepredetermined operation, so as to allow the user to visually perceive acondition that a size of the setting image and that of the specificobject are substantially aligned with each other.
 8. A head-mounteddisplay device according to claim 7, wherein the set of cameraparameters include parameters that represent a focal length of theimaging section, and the set of projection parameters include parametersthat represent a focal length of the image display section, and theparameter setting section adjusts at least one of the parametersrepresenting the focal length of the imaging section and the parametersrepresenting the focal length of the image display section, therebychanging the size of the setting image.
 9. A computer program for ahead-mounted display device including an image display sectionconfigured to transmit light from an outside scene and to display animage; an imaging section configured to capture the outside scene, andan operation input section configured to accept an operation, thecomputer program causing the head-mounted display device to realizefunctions of: an image setting function to cause the image displaysection to display an image, an object specification function to derivespatial relationship of a specific object with respect to the imagingsection in the case where the specific object is included in the outsidescene captured by the imaging section, and a parameter setting function,wherein the image setting function causes the image display section todisplay a setting image based at least on the derived spatialrelationship and a predetermined parameter group so as to allow a userto visually perceive a condition that a position and pose of the settingimage and those of the specific object correspond to each other, andafter the setting image is displayed by the image display section, theparameter setting function adjusts at least one parameter included inthe parameter group based at least on a predetermined operation acceptedby the operation input section so as to allow the user to visuallyperceive a condition that at least a position and pose of the settingimage and those of the specific object are substantially aligned witheach other, in the case where the operation input section receives thepredetermined operation.